Why do my list item bullets overlap floating elements

前端 未结 23 1259
半阙折子戏
半阙折子戏 2020-11-28 18:00

I have an (XHTML Strict) page where I float an image alongside regular paragraphs of text. All goes well, except when a list is used instead of paragraphs. The bullets of th

23条回答
  •  青春惊慌失措
    2020-11-28 18:42

    I have found a solution to this problem. Applying an ul { overflow: hidden; } to the ul ensures that the box itself is pushed aside by the float, instead of the contents of the box.

    Only IE6 needs an ul { zoom: 1; } in our conditional comments to make sure the ul has layout.

提交回复
热议问题