CSS:
HTML Code:
<style>
.images {clear:left; float:left;.... }
...(etc)
</style>
HTML Code:
<div>
<img src="#" class="images" />
<img src="#" class="images" />
<img src="#" class="images" />
<img src="#" class="images" />
<img src="#" class="images" />
(etc.)
....
<img src="#" class="images" />
</div>
but would need to see you actual code to know if this is closer to what you are trying to do...
You do no need to 'DIV-itis' this... no need to wrap every image in a "DIV" and no need to bloat your CSS with a CLASS or ID for every DIV thereof... let the CSS 'cascade' through your HTML... state it once and let it be re-used..
Smaller code is faster-loading, less bandwidth, easier to maintain, etc.
Or, smaller still:
CSS:
HTML Code:
<style>
#images img {clear:left; float:left;.... }
...(etc)
</style>
HTML Code:
<div id="images">
<img src="#" />
<img src="#" />
<img src="#" />
<img src="#" />
<img src="#" />
(etc.)
....
<img src="#" />
</div>
and says exactly the same thing.
Bookmarks