开发者

How to stop DIV element from getting pushed down in table?

开发者 https://www.devze.com 2023-02-12 19:31 出处:网络
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

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 d开发者_开发问答own 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.


you need to add to your css vertical-align:top; for #main_box

How to stop DIV element from getting pushed down in table?


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.


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.


you need to add to your css vertical-align:top; for #main_box

0

精彩评论

暂无评论...
验证码 换一张
取 消