Skip to content

Instantly share code, notes, and snippets.

@saturnflyer
Created February 26, 2010 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saturnflyer/315466 to your computer and use it in GitHub Desktop.
Save saturnflyer/315466 to your computer and use it in GitHub Desktop.
.grid_list li
display: -moz-inline-box
-moz-box-orient: vertical
display: inline
display: inline-block
vertical-align: top
word-wrap: break-word
list-style: none
* html .grid_list li
display: inline
* + html .grid_list li
display: inline
.grid_list li > *
display: table
table-layout: fixed
overflow: hidden
/* Set your specific width via a second class and rules similar to the
following ones */
* html .demo-ul li
width: 80px /* for IE 6 */
.demo-ul li > *
width: 80px /* for all other browser */
/* The floated example */
.floated-ul
overflow: hidden
zoom: 1 /* zoom for IE clear fix */
.floated-ul li
width: 80px
float: left
overflow: hidden
word-wrap: break-word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment