Hi,
I need to fix a the column width regardless of the browser resizing.
I have a table with 4 columns with the following sizes:
col 1= 170px (menu col)
col 2= 160px (sub menu col)
col 3= 30px (spacer)
Col 4= 728px (content)
I Need to have fixed width size on the first 3 columns, the content column can be adjustable.
I have the following table code:
<table align="left" id="TABLE1" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed; overflow-x:hidden">
<col width="170" />
<col width="160" />
<col width="30" />
<col width="728" />
<%--TOP BLACK STRIP --%>
<tr>
<td height="10" style="width: 170px; height: 10px; background-color: black;">
<img src="images/topspace.gif" width="170" height="10" /> </td>
<td height="10" style="width: 160px;; height: 10px; background-color: black">
<img src="images/topspace.gif" width="160" height="10" /> </td>
<td height="10" style="width: 30px; height: 10px; background-color: black;">
<img src="images/topspace.gif" width="30" height="10" /> </td>
<td height="10" style="width: 728px; height: 10px; background-color: black;">
<img src="images/topspace.gif" width="360" height="10" /> </td>
</tr>
<tr>
<td align="right" style="width: 170px;" rowspan="2" valign="top">
</td>
<td style="width: 160px; height: 40px; background-color: black">
</td>
<td style="width: 30px; height: 40px">
</td>
<td align="left" rowspan="1" style="height: 200px" valign="bottom">
<asp:Image ID="header1" runat= server ImageUrl="~/Images/header/en/header.jpg" />
</td>
</tr>
<tr>
<td style="width: 160px;; height: 100%; background-color: black;">
</td>
<td style="width: 30px; height: 100%; " >
</td>
<td style="width: 728px; height: 233px;"valign="top" > </td>
</tr>
<tr>
<td style="width: 170px;; background-color: black;">
</td>
<td style="width: 160px;; background-color: black;">
</td>
<td style="width: 30px; background-color: black;">
</td>
<td style="width: 728px; background-color: black;"><div id="global"><p style="text-align: center; color: white;">
Copyright © 2009. All rights reserved.
</p></div>
</td>
</tr>
</table>
Thanks
I need to fix a the column width regardless of the browser resizing.
I have a table with 4 columns with the following sizes:
col 1= 170px (menu col)
col 2= 160px (sub menu col)
col 3= 30px (spacer)
Col 4= 728px (content)
I Need to have fixed width size on the first 3 columns, the content column can be adjustable.
I have the following table code:
<table align="left" id="TABLE1" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed; overflow-x:hidden">
<col width="170" />
<col width="160" />
<col width="30" />
<col width="728" />
<%--TOP BLACK STRIP --%>
<tr>
<td height="10" style="width: 170px; height: 10px; background-color: black;">
<img src="images/topspace.gif" width="170" height="10" /> </td>
<td height="10" style="width: 160px;; height: 10px; background-color: black">
<img src="images/topspace.gif" width="160" height="10" /> </td>
<td height="10" style="width: 30px; height: 10px; background-color: black;">
<img src="images/topspace.gif" width="30" height="10" /> </td>
<td height="10" style="width: 728px; height: 10px; background-color: black;">
<img src="images/topspace.gif" width="360" height="10" /> </td>
</tr>
<tr>
<td align="right" style="width: 170px;" rowspan="2" valign="top">
</td>
<td style="width: 160px; height: 40px; background-color: black">
</td>
<td style="width: 30px; height: 40px">
</td>
<td align="left" rowspan="1" style="height: 200px" valign="bottom">
<asp:Image ID="header1" runat= server ImageUrl="~/Images/header/en/header.jpg" />
</td>
</tr>
<tr>
<td style="width: 160px;; height: 100%; background-color: black;">
</td>
<td style="width: 30px; height: 100%; " >
</td>
<td style="width: 728px; height: 233px;"valign="top" > </td>
</tr>
<tr>
<td style="width: 170px;; background-color: black;">
</td>
<td style="width: 160px;; background-color: black;">
</td>
<td style="width: 30px; background-color: black;">
</td>
<td style="width: 728px; background-color: black;"><div id="global"><p style="text-align: center; color: white;">
Copyright © 2009. All rights reserved.
</p></div>
</td>
</tr>
</table>
Thanks