I need to responsively show several images in a block container, how can I auto adjust and fill the whole container with specific color when screen size being narrowed. Below is the source code of HTML and CSS, demo can be viewed from http://jsfiddle.net/yckelvin/54v27shp/ Only the first few line are filled with the background-color, how can I fill the rest.
<div id="container">Smile Smile
<ul>
<li>
<img src="http://3.bp.blogspot.com/-t9e7S8huhaQ/VBMVN6CbNGI/AAAAAAAAA14/02am46_jiJM/s1600/Big_smile.png">
</li>
<li>
<img src="http://3.bp.blogspot.com/-t9e7S8huhaQ/VBMVN6CbNGI/AAAAAAAAA14/02am46_jiJM/s1600/Big_smile.png">
</li>
{ rest content omitted }
</ul>
</div>
<div id="container">Footer Footer</div>
CSS
#container {
background-color: rgba(0, 255, 0, 0.2);
width:calc(100%);
height: 100%;
display: block;
}
img {
width: 100px;
}
li {
display: table-cell;
float: left;
padding: 10px;
}