On 22 Jan 2006, at 12:30 pm, Philippe Wittenbergh wrote: > > On 22 Jan 2006, at 10:35 am, Martin Petrov wrote: > >> Could you please see my site with Firefox and check the unordered >> list >> of links on the right. It shows properly in IE and Opera, but not >> with >> Firefox. >> >> It must be a simple problem, but the negative margins used for the >> sidebar confuse me and I'm so exhausted right now .... :) >> >> http://pax.pcc.edu/gjackson/students/mpetrov/ > > Imho, Opera, Safari, IE get it wrong in this case. > > Difficult case, and the css 2.1 docs are not very clear here. > > On #extra ul, you specify {list-style-position:inside}; > this means, create an inline object that is the bullet within the box > generated by the <li> > Fictional tag sequence would be: > <li><span>bullet</span>.....</li> > But the <a> is set to {display:block}. This moves the box generated > by the <a> to a (new) line of it's own. > > Imho, Opera, Safari, IE get it wrong in this case. > > The better way to handle your list would be to set the list-style- > position to outside (the default) and work out your padding/margins > from there.
Someone asked off list what was my argument for the above, I'll point to the CSS2.1 docs. <http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-position> Specifically: < quote > inside The marker box is the first inline box in the principal block box, [...] < /quote > Philippe --- Philippe Wittenbergh <http://emps.l-c-n.com/> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/