Philippe Wittenbergh wrote: > Line box. In the first testcase, where the anchor has padding, the box > is actually 25px tall, according to the DomInspector/Firebug. 6px > padding, 16px/19px font-size/line-height (computed value for 'normal' > line-height with Helvetica @ 16px on my system).
Ah, font-size/line-height. [...] > The img is taken out of the flow. But the inline element (<a>) has > padding, it is rendered and takes up space, and affects the layout. > > --- > ( > and, as someone else mentioned in this thread, the OP probably didn't > intent to have all 'a' elements to have padding as specified by this > .sidebar-item h3, p, a { > padding:3px 19px; > } > The OP probably wanted .sidebar-item h3, .sidebar-item h3 p, > .sidebar-item h3 a {} > ) > > Philippe > --- > Philippe Wittenbergh > http://l-c-n.com/ I was reading that selector string wrong, I must have check it about 5 times. There is indeed padding. Thank you Philippe. They don't show defaults for anchors on the Gecko and WebKit defaults styles sheets. I would like to add such defaults to this table. <http://css-class.com/test/css/defaults/UA-style-sheet-defaults.htm> I would say that we have. a { text-decoration: underline; color:blue; padding:3px 0; line-height:1em; } Never thought about inline elements. -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/