divs in the same row, but filling the row



Hi.

I want to place 5 divs within the same row:
div-div-div-div-div

My HTML:
-------------
<div class="content">
<div class="fooclass"><img src="image.jpg"></div>
<div class="fooclass"><img src="image.jpg"></div>
<div class="fooclass"><img src="image.jpg"></div>
<div class="fooclass"><img src="image.jpg"></div>
<div class="fooclass"><img src="image.jpg"></div>
<div class="fooclass"><img src="image.jpg"></div>
</div>
--------------

My CSS:
--------
div.fooclass
{
float:left;
background-color:red;
}
--------

However, the divs are really floating, and I went them to fill their
row, because I have to insert <br/> to fill this row.

Does anybody have a solution? Thank you very much.

.



Relevant Pages

  • Re: Tableless layout
    ... I've started playing with html pages with no tables. ... tableless layout. ... I want to have two divs laid out side by side, ... css file and can't seem to figure out what they do to make it work. ...
    (alt.html)
  • Re: how to line up divs?
    ... 2 large divs along side each other ... CSS tables apply the CSS table-like rendering behaviours to HTML ...
    (comp.infosystems.www.authoring.html)
  • Re: Best Linux web site creator/editor
    ... the art of nesting divs within divs down to deep levels, ... programming with the html file and the CSS file side by side. ... I have on my shelf "Web Design in a Nutshell" from O'Reilly It is ... don't worry about that. ...
    (comp.os.linux.misc)
  • Re: A real challenge: Create a Gantt-chart-like chart
    ... The "background" would be a straightforward HTML table. ... would use absolutely positioned divs, with colored backgrounds, and ZIndex> ... relative to the width of the chart. ... generates the HTML and CSS dynamically, for use with any web application. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How can I get the outer DIV to stretch horizontally
    ... you'll see both the HTML and CSS code. ... DIVS start to wrap below each other. ... I haven't looked at your CSS or HTML in detail, ...
    (comp.infosystems.www.authoring.stylesheets)