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>
Comments
Post a Comment