If you have to work with someone else’s CSS that uses CSS Reset, then you simply have to style everything on your own. So if you want a list to have some indents, you need to create them yourself, and you probably need to use a class
or id
attribute on the list elements that you want to have affected.
In general, yhere is no way to get the browser’s default styling back when you have overridden it with CSS Reset. You can only explicitly override the override. Assuming you have <ul class=foo>
so that you want that list and all ul
lists inside it to have indentation, you can set
ul#foo, ul#foo ul { padding-left: 40px }
This establishes the “expected” default indentation as per HTML5 CR. This corresponds reasonably well to typical browser defaults, but actual defaults may still differ.
If you do not wish to establish something that is expected to match defaults but some reasonable indentation, you can use the em
unit, which adapts to font size, and use a relatively small value:
ul#foo, ul#foo ul { padding-left: 1.3em }