Dropdown list alignment issue (HTML/CSS)

后端 未结 3 1668
走了就别回头了
走了就别回头了 2021-01-29 05:43

I\'ve asked a question like this before, but I am using differnt code to last time.

I\'m trying to create a dropdown menu. Ther are certain elements in that main list th

3条回答
  •  一向
    一向 (楼主)
    2021-01-29 06:44

    Some element on the web page have standard padding values. For example all lists have padding-left. If you want to change this try this:

    Add this in your CSS code:

    ul {
       padding: 0;
    }
    

    Or you can add come specific id or class for this menu, and change padding for them.

提交回复
热议问题