CSS3 Resolution
Utilizing various @media
queries can result in a visually appealing layout on CSS3 compatible browsers, with limitations depending on screen size. Take a look at this interactive demo (view full screen) to see the effects using this sample code:
HTML
<ul class="container">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
CSS
@media screen and (min-width: 122px) {
.container {width: 120px;}
}
@media screen and (min-width: 242px) {
.container {width: 240px;}
}
@media screen and (min-width: 362px) {
.container {width: 360px;}
}
@media screen and (min-width: 482px) {
.container {width: 480px;}
}
@media screen and (min-width: 602px) {
.container {width: 600px;}
}
/* customization based on needs */
.container {
margin: 10px auto;
overflow: hidden;
border: 1px solid red;
height: 210px;
}
li {
width: 100px;
height: 50px;
background: cyan;
float: left;
margin: 10px;
}
For further guidance, you may find this resourceful link helpful.