On Dec 27, 2006, at 10:27 AM, Gunlaug Sørtun wrote:
> Ian Piper wrote:
>> http://www.tellura.co.uk/fenditching/
>>
>> [...] I really want the bullets to be aligned left with the rest of
>> the body text and I'd like a bigger gap between the bullet and the
>> list item text.
>
> Take this basic list-styling...
>
> #content ul {padding-left: 12px; margin-left: .3em;}
> #content ul li {padding-left: 20px /* bullet-gap */; margin-left: 0; }
>
> ...and adjust values to taste.
> Paddings and margins on ul take care of where the entire list lines
> up,
> and I've added some corrections for font-resizing.
> Padding-left on li controls the gap, and margin-left on li gives added
> control of where the bullets line up.
By default, the space reserved for the list marker comes from padding-
left (Gecko, Safari, Opera 9, iCab) or margin-left (Explorer Win/Mac)
on the <UL>.
In this case: zero out margin/padding on the <ul>, then add 1.2 em
padding-left (that allows for different size of list markers,
depending on the user's font-size.
To increase the space between the list marker and the contents (text)
of the li, add padding-left to the <li>.
ul {margin: 1em 0; padding: 0 0 0 1.2em;} /* adjust top and bottom
margin to taste */
li {padding-left: 3em /* adjust to taste */}
Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/