0

I want to place some text to the right of blue ribbon so that it would be on the same line with already existing elements. All my attempts to try doing that causes text occuring on the next line.

What can you recommend?

Here is the code: (JSFiddle)

HTML

<div id='ribbon'>
    <ul id='topMenu'>
        <li>Thing one</li>
        <li>Thing two</li>
        <li>Thing three</li>
    </ul>
</div>

CSS

#topMenu {
    height: 35px;
    margin: 0; padding: 0;
}

#topMenu a {
    color: black;
}

#topMenu li {
    padding: 0 10px 0 10px;
    float: left;
    list-style-type: none;
}

#topMenu li:hover {
    color: white;
    background-color: #00D0FF;
}

UPD: But if I need that text not to be <li> element? I mean, not to use general <li> stylesheet.

nomicos
  • 65
  • 1
  • 6
  • @nomicos I updated my answer, you can see the solution for your new question – Mr. Alien Aug 14 '13 at 14:47