Problem with absolute positioning in Firefox and Chrome

前端 未结 9 2357
傲寒
傲寒 2020-12-14 17:05

I don\'t understand why FF and Chrome render my page differently. Here\'s a screenie of it in

firefox: firefox example http://grab.by/65Bn

and here\'s one i

9条回答
  •  旧时难觅i
    2020-12-14 17:42

    It appears that Firefox has an invisible padding or margin that places the element at the top right of the text space. Chrome is placing the element at the top right of the fieldset element outside of the flow of text.

    One thing you could do is add a div wrapper and then absolutely position the element in the top right of the wrapper so that it lays over the corner of the fieldset.

提交回复
热议问题