Solved

CSS Multi-level menu problem

Posted on 2011-03-07
4
381 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
ID: 35060968
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
ID: 35061062
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
ID: 35061066
I didn't think about using a negitive top.  That worked.  Thank you.
0
 

Author Comment

by:smitty62
ID: 35061077
asdf
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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…

790 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