Posted By

Manaus on 10/30/10


Tagged


Versions (?)

Horizontal menu with list items


 / Published in: CSS
 

  1. #navmenu ul {margin: 0; padding: 0;
  2. list-style-type: none; list-style-image: none; }
  3. #navmenu li {display: inline; }
  4. #navmenu ul li a {text-decoration:none; margin: 4px;
  5. padding: 5px 20px 5px 20px; color: blue;
  6. background: pink;}
  7. #navmenu ul li a:hover {color: purple;
  8. background: yellow; }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Manaus on November 12, 2010

You cannot apply width to inline elements. Use float.

You need to login to post a comment.