Forum Moderators: not2easy
Is it possible to center a group of block elements while still having a fluid number of them in a single row?
If the "card" concept isn't clear, think of them as thumbnails
I'll play with that idea some when I next get the chance. But I'm wondering how exactly that would work. Wouldn't I have to use a div with no declared width? That way the div would expand and contract to exactly fit the floats. Otherwise, with a declared width, the floats would still be off to one side. And, if so, does the
margin:autocause problems for IE?
So I'm thinking something like this (greatly reduced):
.fixedwidth {width:80%;}
.floatcontainer {margin:auto;}
.floater {display:block; float:right; width:20em;}
...
<div class="fixedwidth">
<div class="floatcontainer">
<span class="floater">blah blah blah</span>
<span class="floater">blah blah blah</span>
<span class="floater">blah blah blah</span>
</div>
</div>
Is that along the lines you were thinking?