Page 1 of 1

Lists too far left

Posted: Thu Feb 28, 2008 11:47 am
by SoWhy
Hi all,

when I use <ul> and </ul> to create a list, it is always created too far left in the text, but only in my current theme (see example on my blog). It previews correctly in the admin backend and works fine in all other themes, so I suspect the theme's css file but I cannot find any specifications for "ul" or "li" to have a negative margin to the left. Where could the cause be for this? I admit, the template is heavily hacked so it's kinda strange, but I never defined such behaviour. And if not in the CSS, where else could it be?

TIA

SoWhy

Re: Lists too far left

Posted: Thu Feb 28, 2008 12:36 pm
by yellowled
SoWhy wrote:I cannot find any specifications for "ul" or "li" to have a negative margin to the left. Where could the cause be for this?
They might not have a negative margin (actually, that is not even a negative margin), but the body has margin: 0;, and the lists inherit that.

You're going to have to explicitly define a margin-left for lists.

YL

Posted: Thu Feb 28, 2008 12:56 pm
by SoWhy
I never knew, that would inherit so far down. Thanks for your answer!

Posted: Thu Feb 28, 2008 1:36 pm
by yellowled
SoWhy wrote:I never knew, that would inherit so far down. Thanks for your answer!
Inheritance never stops. At least not to my knowledge :)

YL