html - Table like content display using div structure? -
is possible display content shown in attached screenshot using div structure instead table , html/css alone except using jquery toggle control.
few points regarding output:
- any child-row , content won't visible until user clicks arrow-icon of parent-row, clicking same arrow again hide respective child row.
- clicking on arrow-icon make child row visible using jquery toggle animation.
- it has responsive.
i guess this:
ember table
http://addepar.github.io/#/ember-table/overview
and can place divs table layout css display:table
.
html
<div class="mytable"> <div> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> </div> <div> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> </div> <div>
css
div.mytable { display: table; width: 100%; } div.mytable > div { display: table-row; width: 100%; } div.mytable > div > div { display: table-cell; width: 20%; padding:1em; }
demo
jsfiddle here:http://jsfiddle.net/naokiota/jcqm7/3/
and can read page: layout divs in css table cells in html tables
hope helps.
Comments
Post a Comment