Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
div background color not lining up with the div next to it.
Old 02-28-2009, 10:52 AM div background color not lining up with the div next to it.
Webmaster Talker

Posts: 611
Trades: 0
hi, in internet explorer 6 my page is messed up, i have a left div with a purple background color called #leftlogo_cheret,
and i want to line up the bottom of it with #rightlogo_cheret which has a white background. as it is the page looks messed up in DW, but when i look at the page in browser,it looks better for some reason, is that normal?. but if anyone could please let me know how to get the left purple background div to line up with the right white div id greatly appreciate it. thank you. derek
(the page looks fine in firefox) also, the bottom is showing way too much white space, more than i specified in #rightlogo_cheret and #leftlogo_cheret.
here is the page i am talking about .

http://derekvanderven.com/phyllisgal...aw/cheret.html

and here is the css for the page scroll down to the "CHERET CODE" part.

Code:
@charset "utf-8";
/* CSS Document */

#wrapper {
margin: 100px auto 0 auto;
width: 790px;
height: 326px;
}
body {
background-color: #988A9F;
}

 #leftimage {
 float: left;
 width: 237px;
 height: 326px;
 }
 
 #rightimage {
 background-image: url( main.gif);
    background-repeat:no-repeat; 
 float: left;
 width: 553px;
 height: 326px;
 }
#imgwrapper {
 margin: auto;
    display: inline;
}
 
 #footer {
 float: left;
 background-color: #6878C1;
 text-align: center;
 width: 790px;
 height: 30px;
 border: 1px solid black;
 color: #ffffff;
 padding-top: .3em;
 }
 
 #copyright {
 float: left;
 text-align: left;
 width: 790px;
 height: 30px;
 color: #000000;
 padding-top: .3em;
 font-size: small;
 }
 
 #homeinfo {
  float: right;
  width: 175px;
  height: 75px;
  margin-top:250px;
  font-size: small;
  text-align: left;
  
}
 
 a:link {
    color: #FFFFFF;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #FFFFFF;
}
a:hover {
    text-decoration: none;
    color: #CCCCCC;
}
a:active {
    color: #FFFFFF;
}
/**********************ABOUT US CODE**********************/
#leftlogo {
 float: left;
background-image: url( leftlogo.gif);
    background-repeat:no-repeat;
    height: 450px;
    width: 211px;
    background-position: top right;
    background-color: #DCCBE2;

    }
#rightlogo {
 
 float: left;
background-image: url( rightlogo.gif);
    background-repeat:no-repeat;
    height: 450px;
    width: 579px;
    background-position: top left;
    background-color: #ffffff;
     
   font-size: small;
    }
    
    #wrapperabout {
    
    margin: 50px auto 0 auto;
    height: 400px;
    width: 790px;
    }
    
    #logocontainer {
    margin: 0 auto 0 auto;
    height: 400px;
    width: 790px;
     
    } 
     
 #homepage {
  margin: 0 0 0 0;
  height: 30px;
  width: 50px;
  text-align: center;
  padding: 10px;
  }
  
  #leftlogo a {
  color: #000000;
  border: black solid 1px;
  }
  
  #abouthomeinfo {
  float: left;
  width: 175px;
  height: 75px;
  margin-top:35px;
  font-size: small;
  text-align: left;
  
}
  
  #padded {
  padding: 2em;
  }
  
  /**** LAUTREC CODE *******/
  
  #wrapper_lautrec {
    
    margin: 50px auto 0 auto;
    height: 700px;
    width: 790px;
    }
  #logocontainer_lautrec {
    margin: 0 auto 0 auto;
    height: 700px;
    width: 790px;
    }
    
    #leftlogo_lautrec {
 float: left;
background-image: url( leftlogo.gif);
    background-repeat:no-repeat;
    height: 700px;
    width: 211px;
    background-position: top right;
    background-color: #DCCBE2;

    }
#rightlogo_lautrec {
 
 float: left;
background-image: url( rightlogo.gif);
    background-repeat:no-repeat;
    height: 700px;
    width: 579px;
    background-position: top left;
    background-color: #ffffff;
     
   font-size: small;
    }
    
     #padded_lautrec {
  padding: 2em 2em 0 2em;
  height: 670px;
  }
  
  #leftlogo_lautrec a {
  color: #000000;
  border: black solid 1px;
  }
  
  #gallery_lautrec {
   background-color: #988A9F;
   border: 1px solid #000000;
   text-align: center;
   padding: 5px;
   height: 30px;
   width: 50px;
   color: #ffffff;
   margin-left: 17em;
  
   }
  /****************LAUTREC IMAGE GALLERY PAGE***************/ 
   
   #lautrec_header
   {
   float: left;
   margin: 30px 0 0 40px;
   }
   
   #lautrec_image_container
   {
    margin: 50px 0 0 100px;
    float: left;
    width: 500px;
    height: 300px;
    
    }
    .lautrec_image
    {
    float: left;
    text-align: center;
    margin: 40px 0 0 20px;
     width: 67px;
     height: 90px;
     }
      
    /**** CHERET CODE *******/
  
  #wrapper_cheret {
    
    margin: 50px auto 0 auto;
    height: 500px;
    width: 790px;
    }
  #logocontainer_cheret {
    margin: 0 auto 0 auto;
    height: 500px;
    width: 790px;
    }
    
    #leftlogo_cheret {
 float: left;
background-image: url( leftlogo.gif);
    background-repeat:no-repeat;
    height: 500px;
    width: 211px;
    background-position: top right;
    background-color: #DCCBE2;

    }
#rightlogo_cheret {
 
 float: left;
background-image: url( rightlogo.gif);
    background-repeat:no-repeat;
    height: 500px;
    width: 579px;
    background-position: top left;
    background-color: #ffffff;
     
   font-size: small;
    }
    
     #padded_cheret {
  padding: 2em 2em 0 2em;
  height: 500px;
  }
  
  #leftlogo_cheret a {
  color: #000000;
  border: black solid 1px;
  }
  
  #gallery_cheret {
   background-color: #988A9F;
   border: 1px solid #000000;
   text-align: center;
   padding: 5px;
   height: 30px;
   width: 50px;
   color: #ffffff;
   margin-left: 17em;
  
   }
here is the html for the page.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="phyllis.css" rel="stylesheet" type="text/css"/>
 
<title>about us</title>
 

 

<style type="text/css">
<!--
.style1 {font-weight: bold}
 
 
-->
</style>
</head>

<body>
<div id="wrapper_cheret"> 
    <div id="logocontainer_cheret">
  <div id="leftlogo_cheret"> <div id="homepage"><a href="home.html">Home</a><a href="home.html" class="style1"></a></div> 
   </div><!--end leftlogo-->   
    <div id="rightlogo_cheret"><div id="padded_cheret"> 
      <p><strong>Jules Cheret</strong><br />
        May 31, 1836 - September 23,   1932<br />
        <br />
        Jules Cheret revolutionized printing when he invented the process of   color lithography, wherein the image was drawn on the stone and each color was   separately inked and printed,<img src="Cheret-Photograph.gif" width="160" height="229" border="0" align="right" style= "padding: 20px"/> enabling the artwork to exude an array of passionate colors in harmony. This had   an enormous impact on advertising. The streets were ablaze with posters attached   to walls and kiosks advertising La Goulue, Aristide Bruant, Loie Fuller, Mlle.   Eglantine, May Milton, Jane Avril as well as periodicals, products and   revues.</p>
            <p>While doing these posters Jules Cheret executed numerous pastels   and watercolors. His ‘Cherettes’, the lovely and lively women who could be seen   dancing, playing cymbals or mandolins, dressed in the fashion of the day were a   popular subject. His ability to strike a balance between the reality and fantasy   of colors was unsurpassed, and to this day Jules Cheret is considered the   “Master of Lithography.”<br />
                <br />
              <br />
           
            </p>
            <div id="gallery_cheret"><a href="works_cheret.html">Gallery of Works </a></div>
      <!--END homeinfo--> 
      </div>
      
    <!--end padded-->
   </div> 
    <!-- end rightlogo-->
   </div> <!--end logocontainer-->
 
 
<div id="footer"><a href="about.html">About the gallery</a> | <a href="lautrec.html">Henri de Toulouse-Lautrec</a> | <a href="cheret.html">Jules Cheret</a> | <a href="icart.html">Louis Icart </a>| <a href="villon.html">Jaques Villon</a> | <a href="other_artists.html">Other Artists </a>| <a href="resources.html">Resources</a> | <a href="site_map.html">Site map</a></div>






<div id="copyright"><pre class="style1"> &copy; Phyllis Gardner Gallery        Site design by: <a href="http://derekvanderven.com">derekvanderven.com</a></pre>
</div>

</div> <!-- end about wrapper-->
</body>
</html>

Last edited by silverglade; 02-28-2009 at 12:39 PM..
silverglade is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-28-2009, 01:30 PM Re: div background color not lining up with the div next to it.
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
looks messed up in DW, but when i look at the page in browser,it looks better for some reason, is that normal?
Yes. You should never rely on DW's internal preview, always preview in your browser for what is actually going on.

As for your background problem, this is were a method such as faux columns will save you from a lot of aggravation.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-28-2009, 01:51 PM Re: div background color not lining up with the div next to it.
Webmaster Talker

Posts: 611
Trades: 0
i read the alistapart faux column sticky and i dont understand it. im going to have to google it more to figure it out. is there a way with my current setup to fix this purple background not lining up ? i fixed the extra white space by ignoring what DW was showing me and just adjusting the length values. any more help greatly appreciated. thank you for answering my other post. it helped alot with all my websites. derek

Last edited by silverglade; 02-28-2009 at 02:24 PM..
silverglade is offline
Reply With Quote
View Public Profile
 
Old 03-01-2009, 07:34 AM Re: div background color not lining up with the div next to it.
Webmaster Talker

Posts: 611
Trades: 0
i found a fix for it from someone. i removed the height from my #padded_cheret div, the one i used to do the padding so my div wouldnt expand when i added padding. ( sorry ladynred, i just had to use it because i was too much of a newbie LOL. )so it was like this.

Code:
 #padded_cheret {
  padding: 2em 2em 0 2em;
   
  }
notice no height there. he said "you dont need this height in there, and ie6 is adding the padding on top of the height". i dont know why ie6 does that, or how removing the height fixed it., but it did. here is the completed page.
ill just have to remember to try that when i get that certain error in the future. here is the finished page with the purple background all the way down.

http://derekvanderven.com/phyllisgal...aw/cheret.html

i hope i dont have to keep asking questions on each website i do, but as i get better, i think the questions are becoming less, at least i hope so. i will know when i am ready when i can do a website and not have to ask questions on the forum. hopefully i have covered enough layouts to get a general idea, but i have a feeling i'm still in for more questions, probably not for this website though, because the rest of the pages are pretty much based on the ones i have dones already. so i think for this website so far i had only 2 or 3 questions. hopefully that will be it. LOL

Last edited by silverglade; 03-01-2009 at 07:56 AM..
silverglade is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to div background color not lining up with the div next to it.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24130 seconds with 12 queries