Forums

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

Home Forums CSS Menu bar

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #154132
    sirmsym80
    Participant

    Hi, I want to create a horizontal menu bar, but I can not. Or rather, I can not change the image of the list .. Who can help me?

    HTML:

    <div>
      <ul>
        <li>
          <a href="#">a</a>
        </li>
        <li>
          <a href="#">b</a>
        </li>
        <li>
          <a href="#">c</a>
        </li>
        <li>
          <a href="#">d</a>
        </li>
        <li>
          <a href="#">e</a>
        </li>
        <li>
          <a href="#">f</a>
        </li>
      </ul>
    </div>
    

    CSS:

    content {
    
        float: left;
        width: 750px;
        height: 30px;
        background: yellow;
        font-weight: bold;
    
    
    }
    
    menu {
    
        padding-left: 20px;
        margin: 0px;
        list-style-image: url('img/fr.png');
    
    
    }
    
    content_header li {
    
        float: left;
        display: inline;
        padding-right: 30px;    
    
    
    }
    

    Thanks!

    #154280
    georgearnall
    Participant

    Please could you clarify your question. You have given us two sets of unrelated code including invalid CSS. Can I suggest you show us in CodePen so we can fix your code.

    Thanks.

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