List items run outside of list and div area

前端 未结 4 2441
旧时难觅i
旧时难觅i 2021-02-19 17:11

I\'m having an issue with a menu un-ordered list. Whereby the list items are over running the

    and
    boundaries and only starting t
4条回答
  •  深忆病人
    2021-02-19 17:54

    Do display: block; always... Never do display: inline; or display: inline-block;

    To fix the Unordered List from pouring out of the DIV, try going into the CSS and apply this:

    ul {
    list-style-position: inside;
    }
    

提交回复
热议问题