Barney Carroll wrote:
> I remember somebody suffering from this in the last 2 months but forgot
> the solution and couldn't turn up the thread.
>
> I have this tree:
>
> <code>
>
> <div>
> <ul>
> <li>
> <a>Hi</a>
> </li>
> </ul>
> </div>
>
> </code>
>
> Everything is unstyled apart from li{display:inline} and the <a>, which
> has strong padding - but the y-padding extends beyond the ancestral
> elements.
>
> I have tried applying overflow:visible, to no effect, and
> overflow:hidden, which mundanely clips off all the padding.
>
> I cannot understand why the ancestral elements do not extend to contain
> the <a>, can anyone else?
>
> Regards,
> Barney
>
>
If they're inline they won't do, the vertical padding doesn't affect the
line-height which is what you're seeking to extend here.
Have a read of this:
http://meyerweb.com/eric/css/inline-format.html
A lot to get your head round but its worth it.
HTH, Rob O
______________________________________________________________________
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/