Lists too far left

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

Lists too far left

Post by SoWhy » Thu Feb 28, 2008 12:47 pm

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

User avatar
yellowled
Regular
Posts: 7036
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Lists too far left

Post by yellowled » Thu Feb 28, 2008 1:36 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
SoWhy
Regular
Posts: 23
Joined: Wed Mar 29, 2006 3:28 pm
Location: Munich (Germany)
Contact:

Post by SoWhy » Thu Feb 28, 2008 1:56 pm

I never knew, that would inherit so far down. Thanks for your answer!

User avatar
yellowled
Regular
Posts: 7036
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Post by yellowled » Thu Feb 28, 2008 2:36 pm

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
amazon Wishlist - Serendipity-Podcast (German only, sorry)

Post Reply