Solved

drop down list alignment

Posted on 2011-09-22
3
254 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
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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

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