also sprach Ed Seehouse [EMAIL PROTECTED] [2007.01.26.2205 +]:
But I suggest it's better to do it by floating the li elements left.
That's much more flexible for styling purposes, and if you do that you
should make the a elements render as blocks as suggested in my
original reply. Block
On 1/26/07, martin f krafft [EMAIL PROTECTED] wrote:
Dear list,
If you look at the top menu bar as well as the subcategories below
the page's h1, you'll see how the vertical padding on the a
elements (as well as li.current) I was using to try to make the
navigation bars a bit thicker doesn't
A is an inline element and so of course rules designed for
application to block elements won't work. Fortunately you can make
them work with display: block; - for example
li a {display: block;}
If I do this, then the entire navigation bar will be horizontal all
of a
martin f krafft wrote:
http://seamus.madduck.net/~madduck/abacons6/leistungen/1.html
http://seamus.madduck.net/~madduck/abacons6/css/screen.css
If you look at the top menu bar as well as the subcategories below
the page's h1, you'll see how the vertical padding on the a
elements (as well
also sprach Zoe M. Gillenwater [EMAIL PROTECTED] [2007.01.26.1952 +]:
Give the ul the same amount of top and bottom padding. That's how
padding works on inline elements -- it pushes out content to the left
and right, but not above and below. The linebox doesn't expand to hold
that
On 1/26/07, martin f krafft [EMAIL PROTECTED] wrote:
li a {display: block;}
If I do this, then the entire navigation bar will be horizontal all
of a sudden:
I don't see why. All that rule says is that every a element inside an
li element should be displayed in block