I am trying to build a webpage using HTML5, CSS3. I have four lists, that I have separated out in 4 different divisions.Another division #position_calls is the parent of all the above mentioned divisions.
I wish to arrange these four lists in a 2*2 array formation, where each box should have same height. I have tried doing this using "float" keyword but that didn't work out well.
#tech_calls{
float:left;
border:2px solid green;
width:49%;
height:50%;
margin:auto;
}
#quantech_calls{
float:right;
border:2px solid green;
width:49%;
}
I refrain from using "position" keyword as that might hinder with responsive pages.
Also, I can't understand why the parent red border of div #position_call doesn't covers whole area (including its child divs). But removing float property from all child div, it works fine. JSFIDDLE. So what float has to do with this?
Any help would be appreciated.
I am familiar with Javascript if that helps, Thanks!