Lists too far left

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
SoWhy
Regular
Posts: 23
Joined: Wed Mar 29, 2006 3:28 pm
Location: Munich (Germany)
Contact:

Lists too far left

Post 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
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Lists too far left

Post 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
SoWhy
Regular
Posts: 23
Joined: Wed Mar 29, 2006 3:28 pm
Location: Munich (Germany)
Contact:

Post by SoWhy »

I never knew, that would inherit so far down. Thanks for your answer!
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post 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
Post Reply