Computing.Net > Forums > Web Development > valign=top not working

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

valign=top not working

Reply to Message Icon

Name: brds
Date: March 31, 2006 at 10:21:50 Pacific
OS: XP
CPU/Ram: 512
Product: Dell
Comment:

Hello,
I'm making a web page for one of my projects in school. I have a side menu bar in a cell which is then in another cell. I want the menu to stay at the top of the screen, but when text on the page gets long, the menu drops down more and more on the page.

I put in the <td valign="top">, but that still doesn't work.

If you want to see the entire page...
http://www.tehbrds.com/homework/



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: March 31, 2006 at 11:17:27 Pacific
Reply:

The problem is that the cells you are using the valign property in are in a table which is in another TD. That table is positioned in the middle (vertically) within the containing TD! You need to use the valign property in the containing TD to make that tabe at that top.

One trick I use in such situations is to temporarily use borders on the tables so I can see exactly what is where.

here is the line in question:

<td width="15%" height="83%" bgcolor="#009900" valign=top>

By the way, you have some duplicative and unecessary code - basically you need to do some cleanup. for instance you have a CENTER tag within another CENTER tag.

Michael J


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: valign=top not working

Java Script not working on web site www.computing.net/answers/webdevel/java-script-not-working-on-web-site/1693.html

onMouseOut event not working good www.computing.net/answers/webdevel/onmouseout-event-not-working-good/3181.html

!= operator is not working www.computing.net/answers/webdevel/-operator-is-not-working/4263.html