Reputation: 34513
Any clue how to stop a DIV element from getting pushed down in a table?
Here's the page: http://www.panabee.com/domain-name-generator/healthy%20food
As you can see, the "Variations" DIV element in the left-hand side is pushed down unnaturally. It should be top aligned with the "Ask for help..." image, but for some reason the presence of the image pushes down the Variations" DIV element. If I replace the image with a little text, the top boxes in the two columns are again top aligned.
Any clues?
Thanks!
P.S. Feel free to offer feedback/suggestions on the site, too! Thanks all.
Upvotes: 0
Views: 4265
Reputation: 1495
The anchor a
tag in your right side bar (inside the ask_for_help div) has a vertical-align
of baseline
. Remove that and you will be good to go.
Upvotes: 0
Reputation: 40066
add vertical-align: top;
for #main_box
. Because you have the reset, the td
takes vertical-align: baseline;
and override the "valign=top"
in html.
Upvotes: 2