- 5,842
- Forgotten Wing
Ok, so I'm making this website, and it's got a table set up in the following manner:
The trouble I'm having is that when I use the "<br>" tags to simulate the page's length when it has content, the menu is relocated to the center of the row it's on. What I want to know is: is there a way to make the menu stick to the top of the cell it's in? I'm going to be integrating this design with the use of PHP, so if you can think of solutions using that, they'll work as well. Thanks in advance.
EDIT: Nevermind. I don't need the help anymore. What was wrong with it? In the <td> tags, I forgot the attribute "valign=" which sets where the vertical alignment of the cell in the row is.
(valign="attribute" where attribute is either Top, Center, or Bottom)
Can a mod close this now?
HTML:
<table width="900" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5" rowspan="3"><img src="5pxhspacer.gif"></td>
<td colspan="3"><img src="2pxvspacer.gif"></td>
<td width="5" rowspan="3"><img src="5pxhspacer.gif"></td>
</tr>
<tr>
<td width="152">
<!--This is where the side menu begins//-->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="smenutop.gif" height="10" width="152"></td>
</tr>
<tr>
<td style="background-image:url(smenuback.gif)" align="center"> </td>
</tr>
<tr>
<td><img src="smenubottom.gif" width="152" height="63"></td></tr>
</table></td>
<!--This is where the side menu ends and the content part begins//-->
<td width="2"><img src="2pxhspacer.gif"></td>
<td width="736" style="background-image:url(contentsubback.gif)" rowspan="2">
<table width="736" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="3"><img src="4pxvspacer.gif" width="1" height="4"></td>
</tr>
<tr>
<td width="2"><img src="2pxhspacer.gif" width="2" height="1"></td>
<td width="732" align="center" bgcolor="#FFFFFF"> </td>
<td width="2"><img src="2pxhspacer.gif" width="2" height="1"></td>
</table></td>
<!--This is where the content ends//-->
</tr>
</table></td>
The trouble I'm having is that when I use the "<br>" tags to simulate the page's length when it has content, the menu is relocated to the center of the row it's on. What I want to know is: is there a way to make the menu stick to the top of the cell it's in? I'm going to be integrating this design with the use of PHP, so if you can think of solutions using that, they'll work as well. Thanks in advance.
EDIT: Nevermind. I don't need the help anymore. What was wrong with it? In the <td> tags, I forgot the attribute "valign=" which sets where the vertical alignment of the cell in the row is.
(valign="attribute" where attribute is either Top, Center, or Bottom)
Can a mod close this now?