html - Ordered List that automatically separates into columns, based on parent div height -


i have div (for example we'll call #container) has height set 100% of page. in #container, have ordered list have 101 items. looking clean, efficient method of having ordered list break columns based on #container's height. can imagine, ordered list of size expand vertically larger #containers height is. want ol automatically break columns #container doesn't have expand.

you can try this

#container { width:100%; //or whatever width have height:100%; } ul { padding:0; margin:0; list-style:none;   // gets rid of typical behavior of ul } li { position:relative; width: 200px; // specific width, play value. height: 200px; float:left; } 

i recommend adjusting size of list items accordingly available width of screen through @media directives , rather using percentage fixed sizes.

btw : believe should using #container {min-height:100%;} because dare dont have space available in 1 screen.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -