Different Table Cell Size
Moderator: General Moderators
Different Table Cell Size
How do I change the cell size in the same table?
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>
<html>
<head>
<title>
Table Test
</title>
</head>
<body>
<table border = 4>
<tr>
<td width = "10%"></td>
<td width = "30%"></td>
</tr>
</table>
</body>
</html>
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
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
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