Forum Moderators: phranque

Message Too Old, No Replies

I have a question about keeping content on top of a table.

I really need help..please

         

naitsirhc26

7:19 pm on Jul 25, 2006 (gmt 0)

10+ Year Member



<td width="14%" height="1000"> <p><font size="2" face="Geneva, Arial, Helvetica, sans-serif"><a href="index.php">Home</a></font></p>
<p><font size="3" face="Geneva, Arial, Helvetica, sans-serif"><strong>Resources
</strong></font><br>
</td>

This is the code I have for a table of mine. I was wondering if there is any code I can add so that the the content that is inside the table, automatically stays at the top. I don't want the content centered in the table, I want it at the top. Any help would be greatly appreciated. My site looks horrible without this.

naitsirhc26

7:29 pm on Jul 25, 2006 (gmt 0)

10+ Year Member



I believe this is called the baseline? I only want to apply it to this cell only though.

jay5r

7:29 pm on Jul 25, 2006 (gmt 0)

10+ Year Member Top Contributors Of The Month



Put valign="top" in your <td> tag...

naitsirhc26

7:33 pm on Jul 25, 2006 (gmt 0)

10+ Year Member



Never mind, I figuered it out. its valign="top" . Its always nice when you figure stuff out yourself.

naitsirhc26

8:12 pm on Jul 25, 2006 (gmt 0)

10+ Year Member



thank you jay!

rocknbil

10:44 pm on Jul 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well a couple other tidbits: the height attribute is pretty much worthless, and the font tag is pretty well deprecated. Despised by many, even. Someone help me out here, what's better than valign=top that works in to all browsers?

<style type="text/css">
.nav {
font-family:Geneva, Arial, Helvetica, sans-serif;
font-size: 75%;

width:14%;
}
.nav p.bigger { font-size: 85%; font-weight:700; }
.nav p { margin:0; padding:0; }
</style>

<td class="nav" valign="top">
<p><a href="index.php">Home</a></p>
<p class="bigger">Resources</p>
</td>