CSS: Unordered list clear image floated left


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



Copy this code and paste it in your HTML
  1. ul {display: inline-block} /* trigger hasLayout in IE */
  2. ul {display: block} /* reset to default (triggered hasLayout will stay) */
  3. ul {overflow: hidden} /* clear floats in good browsers */
  4.  
  5. Combine all 3 into single ul element style.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.