PDA

View Full Version : Html - Cell alignment


sjc_unique
08-05-2002, 04:41 PM
Right, have learnt html and css and stuff...and can design a basic site and stuff...however i have a problem i am struggling to solve.

How can i align the cells in my table? I have a <body> which consists of 3 <td>'s across the page only, however they dont align to the top. they align centrally. I have tried the <valign=top> in different places, and they dont seem to work.

any suggestions or solutions would be appreciated. thanks.

hopefully u can see from the image how i want it to look!!


SJC

x_goose_x
08-05-2002, 04:50 PM
<table border="0" cellspacing="2" cellpadding="0">
<tr height="50">
<td width="100" style="border-style: solid; border-color: black; border-width: 1;">.</td>
<td width="300" rowspan="2" style="border-style: solid; border-color: black; border-width: 1;">.</td>
<td width="50" rowspan="3" style="border-style: solid; border-color: black; border-width: 1;">.</td>
</tr>
<tr height="50">
<td>.</td>
</tr>
<tr height="50">
<td>.</td>
<td>.</td>
</tr>
</table>


I put in the periods, because the td's need something in them or else they won't be created. Put in spaces. I would have, but the forum makes & n b s p ; into an actual space.

sjc_unique
08-05-2002, 05:11 PM
i'm not sure what u just did....but it worked!!!

i went through it first and thought i had it....but it didnt work....so i decided to cut and pasted it and put the contents in your code and now it looks perfect...weird heh?

thanks mate....watch this space for the launch of that site!!

SJC