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:

  1. any child-row , content won't visible until user clicks arrow-icon of parent-row, clicking same arrow again hide respective child row.
  2. clicking on arrow-icon make child row visible using jquery toggle animation.
  3. it has responsive.

enter image description here

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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -