Why do my list item bullets overlap floating elements

前端 未结 23 1206
半阙折子戏
半阙折子戏 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:20

    Edited to update based on OP's comment

    ok, then just break it up into 2 divs nested together

    ul  {background: blue; position:static;}
    .therest {position:relative; width:100%}
    .indent {float:left; }
    
    

    Est tincidunt doming iis nobis nibh. Ullamcorper eorum elit lius me delenit.


    Lorem

    • list element
    • list element
    • list element
    the rest now under the UL

    try changing the ul li css to

    ul {float:left; background: blue; }

提交回复
热议问题