How can I position an element at the bottom of its container in Firefox?

后端 未结 7 1291
迷失自我
迷失自我 2021-01-04 13:01

I have a table cell, and I want a div within it to always be at the bottom left corner. The following works fine in IE and Safari, but Firefox is positioning the div<

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-04 13:49

    Right, position:relative has no effect for table elements, and firefox apply this rule. The solution of the div works, but this is terrible markup in my opinion.

    Do you absolutely need to use a table to display this content? (Or is it relative?)

    If not, why don't you use div elements and do what you want?

    To use tables for layout issues is so 1998...

提交回复
热议问题