Hallo,
I am trying to make a table with an height=100% and a width=100%. The table should contain 5 columns. The middle column width is given in pixel, the two internal columns have also a given width, the two external columns should adjust depending on the screen width. The problems are two: first it seems that height:100% doesn't work in CSS, the other is that I would like that the two adjusting columns have the same width, so the page would look in the center.
I could manage to have this with HTML:
<table width="100%" height="100%">
<tr>
<td style="background-color:#00ff00"></td>
<td width="50" style="background-color:#ff0000"></td>
<td width="100"style="background-color:#0000ff"></td>
<td width="50" style="background-color:#ff0000"></td>
<td style="background-color:#00ff00"></td>
</tr>
<table>
but I cannot traslate it into CSS, if I use the same properties it doesn't work, what I'm using is:
table.first {width:100%;
height:100%px;
border:1px #000000 solid;}
td.middle_left {width:50px;}
td.central {width:100px;}
td.middle_right {width:50px;}
Am I missing something? thanks for suggestion
I am trying to make a table with an height=100% and a width=100%. The table should contain 5 columns. The middle column width is given in pixel, the two internal columns have also a given width, the two external columns should adjust depending on the screen width. The problems are two: first it seems that height:100% doesn't work in CSS, the other is that I would like that the two adjusting columns have the same width, so the page would look in the center.
I could manage to have this with HTML:
<table width="100%" height="100%">
<tr>
<td style="background-color:#00ff00"></td>
<td width="50" style="background-color:#ff0000"></td>
<td width="100"style="background-color:#0000ff"></td>
<td width="50" style="background-color:#ff0000"></td>
<td style="background-color:#00ff00"></td>
</tr>
<table>
but I cannot traslate it into CSS, if I use the same properties it doesn't work, what I'm using is:
table.first {width:100%;
height:100%px;
border:1px #000000 solid;}
td.middle_left {width:50px;}
td.central {width:100px;}
td.middle_right {width:50px;}
Am I missing something? thanks for suggestion