开发者

List bullet moved to the right when floats applied inside list position in google chrome

开发者 https://www.devze.com 2023-03-14 18:58 出处:网络
http://szczotka.net/formularz/ My list numbers in #kwestionariusz are moved to the right in chrome. Inside I have two floated spans and span floated left goes outside开发者_如何学C the list item.

http://szczotka.net/formularz/ My list numbers in #kwestionariusz are moved to the right in chrome. Inside I have two floated spans and span floated left goes outside开发者_如何学C the list item. How can I fix it?


Change your elements' <span class="floatLeft"> CSS:

Remove float: left; and use display: inline-block;. I tried this in Chrome's element inspector and it worked out fine.


That's interesting. If I remove float: left then list numbers are ok.

0

精彩评论

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