• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 403
  • Last Modified:

CSS Multi-level menu problem

Is There any way with CSS I can get a multi-level menu to expand straight across instead of across and down one.  In other words. Can I do this

Menu
Item 1 -> subitem 1
               subitem 2

Instead of this:

Menu
Item 1  ->
                  subitem 1
                  subitem 2

See the difference.  Because it's an unordered list I can't get the subitem to be straight across from the item when it expands.
0
smitty62
Asked:
smitty62
  • 2
  • 2
1 Solution
 
Chad HaneyChief Technology OfficerCommented:
Yeah there are multiple ways.  If you have the latter of your example just use position:relative; with a negative  top positioning to align the items.
0
 
Chad HaneyChief Technology OfficerCommented:
Do you have an example of the code you are working with? Or are you starting from scratch right now and just planning?
0
 
smitty62Author Commented:
I didn't think about using a negitive top.  That worked.  Thank you.
0
 
smitty62Author Commented:
asdf
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now