Help make this vertical allignment

Discussion in 'HTML & Website Design' started by dhisky, Jan 16, 2010.

  1. #1
    Hello!

    I have a list but it is aligned vertically, how can I align it vertically using this code.


    Anyone? Thanks!
     
    dhisky, Jan 16, 2010 IP
  2. swashata

    swashata Member

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Use this:

    .ajaxul {
    float:left;
    }
    
    ul.ajaxul li {
    float:left;
    font-weight:bold;
    border-bottom:1px solid #DDDDDD;
    margin-bottom:0;
    }
    
    ul.ajaxul li:hover
    {
    color:#FFF;
    background-color: #CCC;
    } 
    Code (markup):
    Note than you need to float the li left inorder to align them horizontally to make a navigation menu!
     
    swashata, Jan 17, 2010 IP