I'm trying to resize a parent containter based on it's content. Currently, it is using percentage for the width. Unfortunately, the image container does not resize based on it's content.
Is there a way to resize the child container based on it's parent's width (including contents) or have the parent to resize instead? Or should the child content(i.e. the images) be of varying size rather than a fixed size? Many thanks.
#content {
margin-top: 58px;
margin-right: 1.0416667%;
/* 10 div 960 */
float: right;
background-color: #dedede;
width: 72.7083333%;
/* 698 div 960 */
}
#gallery_container {
list-style-type: none;
padding: 0px;
margin: 0px;
background-color: #302200;
}
#gallery_container ul li {
display: inline;
}
#gallery_container ul li img {
padding-top: 10px;
}