<col> Width Problem

Discussion in 'HTML & Website Design' started by emil2k, Nov 17, 2006.

  1. #1
    Hello,

    I'm having trouble with setting up a table with some fixed widht <col>s amd some fluid width <col>s, the problem is for some reason when you minimize the screen a little bit the fixed width columns instead of keeping their width and causing the browser to put on a horizantol scroll collapse to the width of the columns content, and loose their spefied width, here is an example of how I used the code...

    Inline Code:

    <col>
    <col class="col10">
    <col class="col4">
    <col class="col5">
    <col class="col8">
    <col class="col10">
    Code (markup):
    CSS Code:

    #content .table {
        width: 100%;
        border-collapse: collapse;
    }
    
    #content .table .col1 {
        width: 11px;
        white-space:pre;
    }
    #content .table .col2 { }
    #content .table .col3 { width: 70px; }
    #content .table .col4 { width: 60px; text-align: right; }
    #content .table .col5 { width: 70px; text-align: right; }
    #content .table .col6 { width: 40px; }
    #content .table .col7 { width: 70px; text-align: right; }
    #content .table .col8 { width: 115px; text-align: right; }
    #content .table .col9 { width: 60px; }
    #content .table .col10 { width: 20px; }
    #content .table .col11 { width: 5px; }
    #content .table .colstats { width: 100px; text-align: right; }
    
    Code (markup):
    Thanks,
    Emil
     
    emil2k, Nov 17, 2006 IP
  2. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I didn't even know <col> was a real tag. I Googled up a page and immediately it looks like there are some big differences in usage depending on the HTML standard of your file. I hope that helps
     
    phree_radical, Nov 18, 2006 IP
  3. emil2k

    emil2k Well-Known Member

    Messages:
    1,391
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Thanks I bookmarked it maybe I need to close the tags and thats it.
     
    emil2k, Nov 18, 2006 IP