Indent List in HTML and CSS

后端 未结 7 1468
抹茶落季
抹茶落季 2021-02-05 04:17

I\'m new to CSS and working with list. I tried using one of the code I saw on w3schools which shows how to indent lists:




A n

7条回答
  •  盖世英雄少女心
    2021-02-05 05:00

    Normally, all lists are being displayed vertically anyways. So do you want to display it horizontally?

    Anyways, you asked to override the main css file and set some css locally. You cannot do it inside

      with style="", that it would apply on the children (
    • ).

      Closest thing to locally manipulating your list would be:

      
      
      • Coffee
      • Tea
        • Black tea
        • Green tea
      • Milk

提交回复
热议问题