Solved

CSS Multi-level menu problem

Posted on 2011-03-07
4
373 Views
Last Modified: 2012-05-11
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
Comment
Question by:smitty62
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Chad Haney earned 500 total points
Comment Utility
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
 
LVL 12

Expert Comment

by:Chad Haney
Comment Utility
Do you have an example of the code you are working with? Or are you starting from scratch right now and just planning?
0
 

Author Closing Comment

by:smitty62
Comment Utility
I didn't think about using a negitive top.  That worked.  Thank you.
0
 

Author Comment

by:smitty62
Comment Utility
asdf
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now