display inline li

Discussion in 'HTML & Website Design' started by alexdog1805, Apr 2, 2012.

  1. #1
    How to display inline the buckets?

    I used in css display:inline but it doesn't takes because I think it's a css conflict.

    Please help.
     
    alexdog1805, Apr 2, 2012 IP
  2. Website Design & SEO

    Website Design & SEO Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2

    <div class="menu">
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    </ul>
    <br style="clear:left"/>
    </div>




    .menu{
    width: 100%;
    background-color: #333; }

    .menu ul{
    margin: 0; padding: 0;
    float: left;}

    .menu ul li{
    display: inline;}

    .menu ul li a{
    float: left; text-decoration: none;
    color: white;
    padding: 10.5px 11px;
    background-color: #333; }

    .menu ul li a:visited{
    color: white;}

    .menu ul li a:hover, .menu ul li .current{
    color: #fff;
    background-color:#0b75b2;}
     
    Website Design & SEO, Apr 2, 2012 IP
  3. alexdog1805

    alexdog1805 Greenhorn

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    still doesn't work :(
     
    alexdog1805, Apr 7, 2012 IP
  4. sash_007

    sash_007 Well-Known Member

    Messages:
    174
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    125
    #4
    post ur html css here
     
    sash_007, Apr 9, 2012 IP
  5. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #5
    give float left to li and you will resolve the issue.
     
    creativewebmaster, Apr 9, 2012 IP