Web Hosting Talk







View Full Version : What am I doing wrong with style sheet-ish tables?


donxyz
07-19-2004, 04:40 PM
In the body portion of my web page, I have a table on the left with a list of links. The right side of the body portion of the web page is supposed to be the content. However, I can't get the content portion to align with the top of the table on the left.

Here's the page in question:
Link (http://osaa.donortega.com/sportsactivities/basketball/)

And here's the style sheet it's using:
Link (http://osaa.donortega.com/osaa.css)

Any help would be appreciated.

Thanks.

the_pm
07-19-2004, 05:03 PM
It's pretty simple really, and it doesn't have to do with your CSS. You've placed the text in question underneath everything else, so naturally, it's going to be right there. If you're going to use tables for a layout (which is perfectly ok), traditionally the best way to do so is to have one cell for your navigation column and another cell for your content. If you have rows above or below with only one cell in them, use colspan on those <td>s to adjust to the width of your columns in the middle.

Good start, btw!