What's the best way to override a user agent CSS stylesheet rule that gives unordered-lists a 1em margin?

前端 未结 6 503
终归单人心
终归单人心 2020-12-08 02:53

I\'m working on a web app that has a topBar similar to facebook\'s blue bar at the top. I have an unordered list within the div of that bar to list some items, like Inbox,

6条回答
  •  孤街浪徒
    2020-12-08 03:14

    I had the same issues but nothing worked. What I did was I added this to the selector:

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    

提交回复
热议问题