Click to See Complete Forum and Search --> : Block elements inside and inline ul??


apb
05-27-2008, 08:33 PM
I've been struggling with this for at least an hour now, and can't figure out how to do it: I've got a(n?) ul that has my navigation links; I want to style the links like tabs, with a set height and width, so they need to be block elements, right? But, I also want the list to display horizontally; the only way I know to do that is to set the up display to inline. But by all appearances, I can't have block elements inside an inline element; what should I do?

TIA,
Andrew

Centauri
05-27-2008, 09:09 PM
Float the <a>s and <li>s left - this gives the horizontal alignment and the float converts inline elements (the <a>s) to block display so you can then size them.

apb
05-28-2008, 10:05 AM
Great; Thank!!