logo
down
shadow

Different width CSS columns


Different width CSS columns

Content Index :

Different width CSS columns
Tag : css , By : user116330
Date : December 01 2020, 05:00 PM

it should still fix some issue There is NO CORRECT way to set different column widths with CSS columns.
Why it won't work
div {
  width: 100px;
  column-width: 40px;
}
div {
  width: 40px;
  column-width: 45px;
}

Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

Do I need to use javascript to get fluid width columns and static width columns to share the same row?


Tag : javascript , By : Karina
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


Tag : html , By : jan
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">&nbsp;</td>
      <td id="second">&nbsp;</td>
      <td id="third">&nbsp;</td>
      <td id="fourth">&nbsp;</td>
      <td id="fifth">&nbsp;</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


Tag : css , By : fukas78
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?


Tag : javascript , By : Stephen Judge
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
}
Related Posts Related QUESTIONS :
  • Input:checked + after element not working
  • css multiple selector last one doesn't work
  • Css variable in Email Template
  • css pseudo class applied to "a" tag with multiple classes
  • How do I cause a pseudo element to span over blank grid cells?
  • Is it possible to replicate bootstrap 4 col class in CSS Grid?
  • Flexbox - first column full height
  • apply style to ul li after a div span that has a specific class
  • "Inheritance" of a CSS selector
  • Material Ui (reactjs) - Center a logo image in the appBar
  • Placing Link Text Within a Button in Angular App
  • How to center an image in ReactJS using css
  • Less - how to generate values in a loop
  • React/CSS: Using CSS stylesheets in a React app?
  • Why is Safari‚Äôs default font tracking/letter-spacing different than other browsers?
  • How to set text color depends on element class name in css3
  • Encapsulating CSS code in javascript plugin
  • How to give margin-left in proportion to margin-right?
  • change text align according to mobile device in Bootstrap 4
  • ng-deep is effecting sibling components
  • Need to change the highlighted blue color on select drop down to any color without using JavaScript/jquery (mainly in ch
  • overflow-x and overflow-y don't override overflow
  • CSS selector for class and attribute together
  • why are my media queries not working on bootstrap?
  • Can I use PHP inside CSS pseudo class
  • How to select all children with class except the last one in css
  • using google fonts in nextjs with sass, css and semantic ui react
  • Embedding fonts in css file
  • Safari not scaling bullet images
  • Content inside div unclickable
  • How to get a CSS Layout like at elkaniho.com/
  • How to correct this glitch
  • Text editor with spell checker that ignores (X)HTML/CSS/javascript tags?
  • Cross-browser text-stroke methods?
  • What does an * (star) mean in front of a CSS declaration?
  • How to get cross browser <sup> without intrerupting line height?
  • Body Margin:0, Div Width:100% problem in FF and Chrome, fine in IE
  • different css reset for every browser ,is this a good idea to get maximum compatibility with less efforts?
  • Display rootPanel at centre GWT
  • CSS Frameworks like 960 and Blueprint?
  • How to standardize the height of a select box between Chrome and Firefox?
  • Why align="center" not overriding on {text-align:right;}
  • CSS: Parent-Div does not grow with it's children (horizontal)
  • how to set cache for css/js file
  • Is use of position:absolute inside relative can create problems in Print ,screen-readers and for mobile users?
  • Is there a method to include CSS background images in print?
  • How to create column width in CSS that expands with large images yet stays a default size for normally sized content?
  • TinyMCE Image Alignment
  • CSS - Which method is better?
  • Using CSS gradient instead of images
  • Scrolling with CSS
  • Vertically flowing text with css
  • How do you align a block item to the right edge of its parent (with CSS)?
  • CSS gradients in IE7 & IE8 is causing text to become aliased
  • Div Unique CSS Style Links
  • Text Box size is different in IE 6 and FireFox 3.6
  • Horizontal and vertical center text in html
  • #div_iv a:hover not working
  • center a div box in the middle of the page using css
  • Table within a scrolling div: Fill div, but prevent unnecessary horizontal scrollbar
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com