Results 1 to 3 of 3

Thread: [Solved] DIV with float property, multiple divs on same "line"

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    [Solved] DIV with float property, multiple divs on same "line"

    I'm trying to design a image archive where a number of "images" are retrived from a db. Now I want to display a number of images on the same "line". Say that the result from the DB was 6 images, when the images are displayed only 3 can fit on a line, so the next 3 would be displayed under the other 3 on a line. I can get this to work decent with the float property like below exampel. How ever the "footer" div is displayed after the number 6 div. Why would this be? I have boxed in the 6 float divs within a "container" div. Shouldnt I get a "line" break after the container end tag?

    <div class="MASTER CONTAINER">

    <div>Headline</div>

    <div>
    <div style="float: left;">Image code</div>
    <div style="float: left;">Image code</div>
    <div style="float: left;">Image code</div>
    <div style="float: left;">Image code</div>
    <div style="float: left;">Image code</div>
    <div style="float: left;">Image code</div>
    </div>

    <div>Footer</div>
    </div>
    Last edited by Smirre; Nov 20th, 2005 at 03:42 PM.
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width