468,738 Members | 2,613 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,738 developers. It's quick & easy.

Horizontal Nested Lists?

20
Hello,

I am trying to get an effect where I use nested lists, but they are arranged horizontally, like so:

Item 1......1.a
...............1.b

Item 2......2.a
...............2.b

Moving the sub-items out to the right is no problem with CSS. I am having trouble moving them vertically, though. I thought I could just float them, but no, they stop just below the main item.

I can apply a negative vertical value (e.g. top:-30px), but that comes with its own issues. For instance, if the text size changes, the position of the sub item in relation to the main item changes as well.

Any tips on how to set the sub items so that they will always begin on the same vertical line with the main item? Seems like it shouldn't be that hard, but I can't figure it out.

Thanks!
Oct 8 '07 #1
0 916

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

25 posts views Thread by chad | last post: by
15 posts views Thread by Xah Lee | last post: by
7 posts views Thread by Jane Withnolastname | last post: by
4 posts views Thread by Lee K. Seitz | last post: by
7 posts views Thread by addled | last post: by
9 posts views Thread by Verona Busch | last post: by
9 posts views Thread by patrick j | last post: by
7 posts views Thread by patrick j | last post: by
7 posts views Thread by Zethex | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.