Cannot add `margin` to `` element in Safari & Chrome (WebKit)

后端 未结 6 893
无人共我
无人共我 2020-12-14 08:37

EDIT: As of 2012-06-11 this bug has been finally fixed! https://bugs.webkit.org/show_bug.cgi?id=35981#c1

I have some pretty straightforward markup:<

6条回答
  •  [愿得一人]
    2020-12-14 08:49

    Well, really isn't "just another block-level element." Maybe it should be, but the fact is that it inherently is going to have layout peculiarities in that it's supposed to do something pretty weird, as elements go. Between IE and Firefox, the effects of margin and padding on elements are a lot different.

    Do you want to just separate

    content from the top of the box? If so, I'd try playing with padding-top of the fieldset itself.

提交回复
热议问题