Solved

drop down list alignment

Posted on 2011-09-22
3
260 Views
Last Modified: 2012-05-12

here is my menu site
as you see some of drop down list aren't alignment well in the first and the third one it goes to the left it doesn't centered well i try to fix it but i failed could some one help me

 test.zip
0
Comment
Question by:YUYU
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 36585129
Chane your CSS class below:

div#menu li div {
border: #000099 ;
    list-style: none;
    float: right;
    position: absolute;
    z-index: 11;
    top: 45px;
     visibility: hidden;
      padding: 0;
    background: url(images/submenu-top.png) no-repeat 0px 0;
    -background: url(images/submenu-top.gif) no-repeat 0px 0;
}

I have deleted
 left: -125px;
 -left: 30px;
  margin: 0px 0 0 85px;

These atributes from that class.

Regards,
Ram
0
 

Author Comment

by:YUYU
ID: 36585269
no that's not what i mean
look at the picture below i wanna make result like the second one
Untitled-1.png
0
 
LVL 12

Accepted Solution

by:
Dean OBrien earned 500 total points
ID: 36595002
Add this to menu.css

ul.menu li#ford div ul.sub {margin-left:50px}

This will move the sub menu of the third drop down menu. You will then have to change the background image of the hover of the top menu item.

Using this technique you can alter the res.

Easynow
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

717 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