Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pulldown menus not lining up!!

Status
Not open for further replies.

dottieandbelle

Technical User
Feb 29, 2004
8
US
I always seem to have trouble getting my HTML form elements like pulldown menus and text fields to line up with surrounding images within a TD. They are falling to the bottom of the TD even though I specified valign=top. Here's an example of how they look:
Can someone suggest how to make them vertically centered within that white strip near the top of the page?
 
I did "have a read up" on that and although I know that applies to images and regular HTML elements -- I'm still unable to get it to apply to funky form elements. Where would I insert the style? In the TD? In the <select> tag?
 
I have spent hours trying to read up on it myself and can't find an answer. That's why I'm posting -- to see if anyone else has run into a similar problem and has a solution. Isn't that what this forum is for?
 
OK - let's go about it a different way (not wanting to get my book out ;-)).

Give the surrounding TD an ID of, say, "wibble", and add this to your CSS:

Code:
#wibble select {
   margin-bottom: 10px;
}

Works for me in Fx1.5... Not tested in any other browser.

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Adding vertical-align: top; to the img and select box will shove it to the top of the cell. A little less offensive approach will yield more people willing to help.
 
Thanks, I will try that. Someone else said it had something to do with where you place the form tag, and to nest it within a td of another table, so I'll try that too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top