Table proportional widths?

B

Brian

How can the table below be rewritten to work in IE? This works in
FireFox.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><body>

<table width="100%">
<colgroup>
<col width="200px"/>
<col width="1*"/>
</colgroup>
<tr>
<td>This column has a fixed width</td>
<td>This column's width changes</td>
</tr>
</table>

</body></html>

The first column is fixed at 200 pixels while the other column adjusts
with the resizing window.

Thanks,
Brian Jerolleman
 
B

BootNic

Brian said:
How can the table below be rewritten to work in IE? This works in
FireFox.
[snip]

The first column is fixed at 200 pixels while the other column
adjusts with the resizing window.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content=
"text/html; charset=windows-1252" />
<style type="text/css">
table,tbody,thead,tfoot,tr,td{
border:solid black 1px;
}
table{
width:100%;
}
..col_1{
width: 200px;
}
..col_2{
width:auto;
}
</style>
<title></title>
</head>
<body>
<table summary="nothing to see here move along">
<colgroup>
<col class="col_1" />
<col class="col_2" />
</colgroup>
<tr>
<td>This column has a fixed width</td>
<td>This column's width changes</td>
</tr>
</table>
</body>
</html>

--
BootNic Wednesday, February 08, 2006 6:14 PM

I try to take one day at a time, but sometimes several days attack me
at once.
*Jennifer Unlimited*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top