I'm currently working on creating a CSS-based app homescreen that mimics the layout of an iPhone, where you can select different apps. Essentially, I am aiming for a 3x2 grid that spans 100% of the device's page.
My main issue is that this design needs to be compatible with various devices, which means the height and width can vary depending on the device being used.
While the width seems to be functioning correctly, there are instances where the height causes scrolling on certain devices. What I really want is for the app page to occupy the entire screen without any need for scrolling.
Here is the HTML code snippet:
<div class="outer">
<div class="row">
<div class="iconL">
<img src="http://coloredwebdesign.com/wp-content/uploads/2012/02/person-icon.png" />
</div>
<div class="iconR">
<img src="http://coloredwebdesign.com/wp-content/uploads/2012/02/person-icon.png" />
</div>
</div>
<div class="row">
<div class="iconL">
<img src="http://coloredwebdesign.com/wp-content/uploads/2012/02/person-icon.png" />
</div>
<div class="iconR">
<img src="http://coloredwebdesign.com/wp-content/uploads/2012/02/person-icon.png" />
</div>
</div>
<div class="row">
<div class="iconL">
<img src="http://coloredwebdesign.com/wp-content/uploads/2012/02/person-icon.png" />
</div>
<div class="iconR">
<img src="http://coloredwebdesign.com/wp-content/uploads/2012/02/person-icon.png" />
</div>
</div>
</div>
And here is my CSS code:
.outer{
width: 100%;
height: 100%;
}
.row {
width: 100%;
}
.iconL {
float: left;
width: 50%;
}
.iconL img {
float: left;
width: 100%;
}
.iconR {
float: left;
width: 50%;
}
.iconR img {
float: right;
width: 100%;
}
I have created a JSFiddle showcasing the issue: http://jsfiddle.net/QrbKh/
As you can observe, scrolling occurs within the content despite my intention for it to cover the full screen without requiring scrolling.