Let's say you want to display images using css, which can be done using simple html tags <ul> <li>
and wrap them around using css's float properties.
.float-gallery li{
list-style-type:none;
border: 1px solid #CCCCCC;
float:left;
height: 100%;
margin: 5px 15px;
padding:10px;
}
Something interesting happens if images are of uneven height/width like here in this example:
.inline-gallery li{
list-style-type:none;
border: 1px solid #CCCCCC;
width: auto;
min-height: inherit;
display: inline-block;
vertical-align: top;
margin: 5px 15px;
padding:10px;
/* IE 7 hack to make it behave like inline-block */
zoom: 1;
*display: inline;
/* IE 6 hack to fix height */
_height: auto;
}










No comments:
Post a Comment