Currently I have a HTML table which looks like:
---COLM1---|---COLM2---|---COLM3---
data1 smalldata
data 2
data 3
NEW ROW 1 NEW ROW 2
The new row 1 shows the new row for column one right underneath the longest content, but for row 2 I want it to display right under small data.
The code I currently have which works for this example but not for what I want is:
/**-- 3 Column Table Using Divs
Each Column can be any length
--**/
.divTable{
width: 100%;
}
.divTableArticle{
display: inline-block;
vertical-align: top;
width: 23%;
}
.divTableRow{
clear: left;
padding-top: 15px;
margin-bottom: 10px;
}
And the html corresponds:
<div class="divTable">
<!--AS MANY ROWS-->
<div class="divTableRow">
<!---AS MANY ARTICLES--->
<div class="divTableArticle"></div>
</div>
</div>
How would I modify my code to match my new requirements?
As I'm currently listing each rows data, would it be better to list each columns data?
JS Fiddle: Click Here