How to Not Indent Lists in Links sidebar
-
WordPress renders the links sidebar as an unordered list. This is cool for reasons that are esoteric and weighty, but the bottom line is it’s a pain if you don’t like stuff being indented in your sidebar. Personally, I don’t know why you would want to indent things in an already-skinny sidebar. To each his own, though.
Other posts here have suggested settinglist-type:none
, but that’ll only remove the bullet points. It won’t change the indentation.
Courtesy of ALA and some testing with WP I did, here’s the code you need to un-indent your links bar:
#links ul {
list-style: none;
margin-left: 0;
padding-left: 1em;
text-indent: -1em;
}#links ul ul {
margin-left:0;
list-style: none;
padding-left: 1em;
text-indent: -2em;
}
IE and Mozilla interpret padding and indents differently; this way accomodates for both. I have tested this method on Firefox and IE, but I don’t know about Safari.
- The topic ‘How to Not Indent Lists in Links sidebar’ is closed to new replies.