Horizontal list without knowing it's width


/ Published in: CSS
Save to your folder(s)

Displays the list horizontally without using floats and predefined ul-widths.


Copy this code and paste it in your HTML
  1. ul {
  2. position: absolute;
  3. list-style: none;
  4. overflow: none;
  5. white-space: nowrap;
  6. padding: 0;
  7. margin: 0;
  8. }
  9. ul li {
  10. display: inline;
  11. }

URL: http://jqueryfordesigners.com/slider-gallery/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.