Robert Granlund
asked on
CSS resposive divs inside container
I have a div that acts as a container.
.cont {
width:100%;
min-height:200px;
}
I have 10 boxes that will be inside of that container. so each box has a width of 20% so I can have two rows of 5.
.container-box {
width:20%;
float:left;
}
what do I add to the css to keep each of those boxes proportionate in height so they remain square? And so the text remains centered both vertically and horizontally?
.cont {
width:100%;
min-height:200px;
}
I have 10 boxes that will be inside of that container. so each box has a width of 20% so I can have two rows of 5.
.container-box {
width:20%;
float:left;
}
what do I add to the css to keep each of those boxes proportionate in height so they remain square? And so the text remains centered both vertically and horizontally?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
Sample here http://www.marcorpsa.com/ee/t807.html