css - ul no margin on first level of nested list? -
i want styled list doesn't have margin-left on first level.. on subsequent, leveled sublists.. know how this?
<ul> <li>no margin</li> <li> <ul> <li>yes margin</li> </ul> </li> </ul> (without adding css classes first level of ul or changing of code)
is first ul direct descendant of body? know said not adding css classes code presume adding stuff stylesheet not out question? if use style declaration like:
body > ul{ margin-left:0px; } or if know div sit within:
#your_id > ul{ margin-left:0px; } there may default padding need consider.
thanks
Comments
Post a Comment