html - how to limit cells per row? -


i'm trying create sort of layout in html...

1 2 3 4 5 6 7 8 9 10 

how limit how many displayed per row?

can achieve layout without use of table? if so, how?

not entirely sure why want without table, use following css display rules.

div#container{display: table;} div#row{display: table-row;} div#row div{display: table-cell; border:1px solid red;} 

border example

html

<div id="container">     <div id="row">         <div>content</div>         <div>content</div>         <div>content</div>         <div>content</div>          <div>content</div>             </div>     <div id="row">         <div>content</div>         <div>content</div>         <div>content</div>         <div>content</div>          <div>content</div>             </div>     </div> 

http://jsfiddle.net/jasongennaro/c7wy7/


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -