UL don't stay within their containing DIVs?

后端 未结 5 538
陌清茗
陌清茗 2021-02-05 03:26

I have a really simple set up

  • Item one
  • Item two
<
5条回答
  •  灰色年华
    2021-02-05 04:02

    You usually lose the list decorations to the overflow of a div when your UL/OL and LI don't have enough padding, or you are floating elements or display: inline.

    Try adding some padding/margins to your list items (LI element).

提交回复
热议问题