
Signature
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
>font-size is not the problem. line-height is, combined with IE's broken
>default overflow behavior. For example, to set an element height to 1px,
>you need to set overflow:hidden to prevent the automatic height
>expansion to one full line.
Thanks. Both the font-size and the overflow suggestions work. I'm using
kchayka's overflow suggestion as it seems more syntactically correct.
http://jonathanwayne.com/navbar/testnav.html
>However, you should reconsider the need to define such elements in the
>first place. A 1px high element might be better off set via a top or
>bottom border property instead. There is always more than one way to
>accomplish something. Why code extra elements in HTML when they aren't
>really needed?
Using the navspacer class seems more straightforward since as a bottom
border it is sometimes below a category header and sometimes below an item.
Or as a top border it is always above a category except for the top
category, but it's also a bottom border below the bottom category. (In this
example.) So at a minimum, I'd still have to setup additional category
header classes, no?
jon
kchayka - 27 Jul 2005 23:37 GMT
>> A 1px high element might be better off set via a top or
>>bottom border property instead. There is always more than one way to
[quoted text clipped - 3 lines]
> Using the navspacer class seems more straightforward since as a bottom
> border it is sometimes below a category header and sometimes below an item.
FYI, the accepted norm for semantic navigation menu markup, especially
those menus styled via CSS, is a (nested) list. There are plenty of
sites that show how to do it. Google for listamatic or list-o-matic for
several examples. One of those sites even generates some sample code for
you.
In nested list markup you'd likely use a bottom border on the parent
list item, but not the child lists. It's not hard.

Signature
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.