Solved

drop down list alignment

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

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

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

760 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

18 Experts available now in Live!

Get 1:1 Help Now