Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2013
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sub-nav CSS alignment issue

    Hi
    Im having issues aligning me sub-nav menu in CSS directly below the top-nav. It seems to always align to the right.

    Can someone help find the code to fix the alignment vertically ?

    http://cssdeck.com/labs/iczlsfzf

    Thanks

  • #2
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    I think by default there is a padding-left on ul elements.

  • #3
    New to the CF scene
    Join Date
    Aug 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try margin properties to solve your problem

  • #4
    New to the CF scene
    Join Date
    Jul 2013
    Location
    Bangalore
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello,

    Set ul element in margin and padding 0(zero) your problem solve

  • #5
    New Coder
    Join Date
    Jul 2013
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks, ive added

    .top-nav ul {
    padding:0px;
    }

    and its fixed the 1st column, however the last 3 colums are still aligned right in the sub-nav sections. What are the margin properties i need to add ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •