Previous Message
Next Message

Re: [css-d] css list styles

Sent by John Lewis on 27 November 2002 15:03


jeff wrote on Wednesday, November 27, 2002 at 9:13:08 AM:

> i'm trying to find a way to affect the indentation and top and
> bottom padding(??) that seems to come witht he use of the <ul> tag.
> can anyone point me in the right direction?

Make sure to use both margins and padding explicitly; don't assume the
browser uses one or the other.

  ul{padding:0 1em;margin:.5em 0}
  ul>li{padding:0;margin:.25em 0}

The key thing is you need to to use both margin and padding. It should
be fairly straightforward otherwise.

-- 
John

_______________________________________________
css-discuss [EMAIL-REMOVED]]
http://two.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning
Previous Message
Next Message

Message thread: