Forums

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

Home Forums CSS sub-nav menu alignment issue

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #146188
    shpeedie
    Participant

    Hi
    Im haveing some alignment problems with my sub-nav menu, lining up directly under the top-nav menu.
    It seems to be aligned to the right

    Can anyone help identify the code to fix the vertical alignment ?

    http://cssdeck.com/labs/iczlsfzf

    Thanks

    #146213
    Paulie_D
    Member

    Try this

    ul, li {
      margin:0;
      padding:0;
    }
    
    #146224
    Paulie_D
    Member

    I think there is something malformed in the HTML probably an unclosed tag somewhere.

    Some of the CSS looks like mine (from one of my Codepens?) but perhaps you didn’t get it all.

    #146236
    shpeedie
    Participant

    Thanks, that code almost works perfectly, its just a few px still to the right.

    I did get the original code from a codepen, and adapted it from there. It was perfect for what i needed, do you have the original codepen to check the HTML tags ?

    Thanks again

    #146244
    Paulie_D
    Member

    Could have been this one: http://codepen.io/Paulie-D/pen/22c4ca602bda363099133ded6bca2294

    It’s 3 level and doesn’t use images but the some of CSS and comments looks about the same.

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