centering a Up in a div.

this is what somebody has to say about centering a ul in a div :

so assume the HTML to be something like this :

  <div id="headermenu">
      <ul>
        <li>Yo Yo honey !!</li>
        <li>Yo Yo honey !!</li>
        <li>Yo Yo honey !!</li>
        <li>Yo Yo honey !!</li>
        <li>Yo Yo honey !!</li>
        <li>Yo Yo honey !!</li>
        <li>Yo Yo honey !!</li>
      </ul>
  </div>

ANSWER STARTS FROM HERE :

Solution 1: max-width: 660px; and margin: 0 auto; (IE7+)

Syndicate content