Do I need to use javascript to get fluid width columns and static width columns to share the same row?
Date : March 29 2020, 07:55 AM
like below fixes the issue The problem is with the word variable, you see. Have a look at this article here: http://www.alistapart.com/articles/holygrail/What it describes is the case for two fixed width and one width columns. Given this, you should be able to create a layout with as many fixed and variable width columns as you want.
|
IE8 - 3 columns layout: 100% width, left and right div fixed width and 100% height + middle div min-width 955px
Date : March 29 2020, 07:55 AM
To fix the issue you can do I've to migrate an Sharepoint 2007 site to Sharepoint 2010 and users have the IE8 browser. , Yes, <aside class="sidebar left"></aside>
<div class="mainContent"></div>
<aside class="sidebar right></asdie>
|
How do I make a table's columns fill the width not occupied by fixed-width columns?
Tag : html , By : user178709
Date : March 29 2020, 07:55 AM
I wish this helpful for you I have a 5-column table whose first and last columns have fixed (and different) widths. How do I force the 3 center columns to be equally distributed across the remaining width of the table? , How about trying the following? <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
<style type="text/css">
table{width: 100%; font-size: 0; line-height: 12px; table-layout: fixed;}
td {border: 1px solid black; }
#first{ min-width: 10px; width: 10px; }
#second{ min-width: 20px; width: 20px; }
</style>
</head>
<body>
<table>
<td id="first"> </td>
<td id="second"> </td>
<td id="third"> </td>
<td id="fourth"> </td>
<td id="fifth"> </td>
</table>
</body>
</html>
|
css responsive design. 2 columns fixed width. Middle div dynamic width. At certain window width one column is at new lin
Date : March 29 2020, 07:55 AM
around this issue Here example http://jsfiddle.net/oop4kdn6/33/ , try this @media screen and (min-width: 641px) and (max-width: 900px)
{
*
{
margin:0px;
}
#maincontent1{ min-width: 241px; max-width: 500px }
#leftsidebar1, #rightsidebar1{width:200px;}
}
*{margin:0px}
|
How to solve DataTables table header columns width and table body columns width mismatch sometimes?
Date : March 29 2020, 07:55 AM
Hope this helps Following .js files are used. <table class="table table-responsive table-bordered table-striped table-hover" id="tbl-cat-lvl-two" style="width:100%">
<thead>
<tr>
<!-- <th>ID</th> --> //Remove completely this column
<th>Code</th>
<th>Icon</th>
<th>Category Label</th>
<th>Precedence</th>
<th>Visibility</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
{
className: "align-center check-align-center",
"targets": [6],
"render" : function (data, type, full, meta){
let id = full.id;
return `<button href="" class="btn btn-sm btn-info dt-btn-view" data-id="${id}"><i class="fa fa-eye"></i></button><button href="" class="btn btn-sm btn-primary dt-btn-edit" data-id="${id}"><i class="glyphicon glyphicon-pencil"></i></button><button href="" class="btn btn-sm btn-danger dt-btn-del" data-id="${id}"><i class="glyphicon glyphicon-trash"></i></button>`;
}
}
"columns": [
{ "data": "code" },
{ "data": "icon" },
{ "data": "category" },
{ "data": "precedence" },
{ "data": "visibility" },
{ "data" : null,
className : "align-center" // You should style for this class
}
],
"rowCallback": function(row, data, index) {
$('td:eq(5)', row).html(
'<button href="" class="btn btn-sm btn-info dt-btn-view" data-id="'+data.id+'"><i class="fa fa-eye"></i></button>'+
'<button href="" class="btn btn-sm btn-primary dt-btn-edit" data-id="'+data.id+'"><i class="glyphicon glyphicon-pencil"></i></button>'+
'<button href="" class="btn btn-sm btn-danger dt-btn-del" data-id="'+data.id+'"><i class="glyphicon glyphicon-trash"></i></button>'
);
},
.align-center {
text-align: center; // whatever you want
}
|