Page 1 of 1

Different Table Cell Size

Posted: Mon Nov 03, 2003 9:08 am
by szms
How do I change the cell size in the same table?

Posted: Mon Nov 03, 2003 9:34 am
by JAM

Posted: Mon Nov 03, 2003 2:38 pm
by szms
Here is my code for two different cells. But if I don't write inside the cell, it appears a single cell. How can I show those empty cell according to their width. My ultimate goal is to put a java script meny bar in one cell.

<html>
<head>
<title>
Table Test
</title>
</head>
<body>
<table border = 4>
<tr>
<td width = "10%"></td>
<td width = "30%"></td>
</tr>
</table>

</body>

</html>

Posted: Mon Nov 03, 2003 4:00 pm
by microthick
As long as you add content to the cells, they will appear as separate cells.

<html>
<head>
<title>
Table Test
</title>
</head>
<body>
<table border = 4>
<tr>
<td width = "10%">&nbsp;</td>
<td width = "30%">&nbsp;</td>
</tr>
</table>

</body>

</html>

Posted: Thu Nov 06, 2003 7:26 pm
by m3rajk
note: html width tag has been deprecated in html 4.01
it is unsupported in xhtml 1.0
the css method is width:##**

where ## is a number
and ** is the type (note: ** is not needed for 0, types include but are not limited to px, em, in, cm)

more info on css:
http://javascriptkit.com/dhtmltutors/cssreference.shtml
http://www.w3schools.com/css/css_reference.asp
http://simplythebest.net/info/css_properties.html