Is there anything I can do to fully justify DIVs or IMGs without
resorting to JavaScript? I'd like to do what "text-align: justify" does
with text, but it doesn't seem to work with anything else. Here's an
example of what I mean:
<html>
<head>
<title>justified flow test</title>
</head>
<body>
<div style="text-align: justify">
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
<div style="width: 100px; height: 80px; background: blue;
border: 2px solid gray; float: left; margin: 3px"> </div>
</div>
</body>
</html>
The above "text-align: justify" has no effect, but what I wish it could
do is add spaces in between the DIVs so that the right edges line up
with the right edge of the browser. That way, resizing the browser
window would cause more or less DIVs to show up on each line, but
horizontal space would be added to keep both edges flush with the edges
of the browser window.
I'm guessing this is not possible with CSS, but I was wondering if
anyone knew any tricks...
Thanks,
Dave