3 replies [Last post]
RyanJP
RyanJP's picture
User offline. Last seen 18 weeks 1 day ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2010-08-26
Posts: 13
Points: 20

I have my site set up so that the background of the main div is split into 3 parts- a top imagacontaing the header, a middle image which tiles vertically until there is no more content, and a bottom image which is a gradient fading out. It gives a really nice effect and it was working perfectly until I tried to make an image gallery. As soon as I tell my thumbnail divs to float left, they become disconnected from their container div (the tiling middle image no longer tiles). Does this have something to do with the page flow (like with positioning)? I cant figure out a good workaround. Here is the code, thank you in advance:

HTML

<div id="main">
   <div class="picThumb">
     <img src="images/somePic.jpg""></img>
   </div>
</div>

CSS

#main
{
     background-image:url(images/mainBoxMid.png);
     background-position:center;
     background-repeat:repeat-y;
     width:700px;
     margin:0 auto;
 
     padding:15px 70px;  
}
 
.picThumb 
{
    width:200px;
    height:200px;
    float:left;
    margin: 15px;
 
 
    border: 1px dotted;
}

RyanJP
RyanJP's picture
User offline. Last seen 18 weeks 1 day ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2010-08-26
Posts: 13
Points: 20

If you need to see the

If you need to see the problem in more detail, check here:

http://www.jessiebehan.com

notice the main container, then click on Photos.

CupidsToejam
CupidsToejam's picture
User offline. Last seen 17 weeks 15 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

research Containing Floats


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

RyanJP
RyanJP's picture
User offline. Last seen 18 weeks 1 day ago. Offline
rank Regular
Regular
Timezone: GMT-5
Joined: 2010-08-26
Posts: 13
Points: 20

lovely, overflow worked like

lovely, overflow worked like a charm. thanks so much