The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Trouble getting the drop down menu items to align under the parent menu-item

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #43568

    I have developed a basic jQuery drop down menu that overlaps a jQuery dualslider, but am unable to get the sub-menu to appear directly underneath the main menu. I have checked several forums for answers to this question by setting different values for the z-index property and believe the absolute and relative positioning properties to position the menu are correct for the sections outlined in the css style sheet.

    This issue is apparent across all major web browsers (Firefox, Chrome, IE).You can see it here:


    Any tips would be greatly appreciated to determine the fix for this issue.

    Thanks much in advance.



    The reason the drop menu appears a long way down is because of this padding:

    header nav ul {
    float: right;
    padding: 34px 25px 0 0;

    Add something like this to override it:

    header nav ul ul {
    padding: 0;


    All i changed was this:

    ul.dropdown ul {
    width: 220px;
    visibility: hidden;
    position: absolute;
    left: 0;
    padding: 0;

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.