Negative margin different result on safari than any other browser

后端 未结 3 518
走了就别回头了
走了就别回头了 2021-01-19 01:42

CSS:

dd
{
    margin: -1.2em 4em 0 1em;
}

This is the only CSS rule applied. The negative margin is pushing it more to the top on Safari th

3条回答
  •  旧巷少年郎
    2021-01-19 02:13

    I just ran into this using percentage based negative values for margin-top: they looked fine everywhere but mobile safari and mobile chrome. Changing the position from absolute to relative did the trick for me.

提交回复
热议问题