Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry color filling areas it shouldnt!

    http://securestoragesites.com/laredo....com/size.html

    i need explained to me why the background is grey in the middle when the div technically starts at the bottom....why is the grey flooding up in the top middle lines???

    Thank you gentlemen in advance for your help.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello stexia,
    You are repeating this image accross the X axis as a background of the body -


    What were you expecting it to do?
    Just taking a guess that maybe you wanted it to have that tan background across the top of the whole page but matching the height of your header?
    It would be best to edit your background_repeat.jpg in photoshop or something similar but you could also do it this way -
    Code:
    body {
    	background: #0C7926 url(../images/background_repeat.jpg) repeat-x  0 -213px;
    	font-family: Verdana, Arial, Helvetica, sans-serif, Academy;
    	font-size: 12px;
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no no.. =) not the back ground.. the GREY part in the body. If you click on the other links you will see how it is suppose to look. The part im talking about it a little space between the grey text box and the green and yellow boxes. =) see it?

    Stexia*

  • #4
    Regular Coder
    Join Date
    Jun 2008
    Posts
    173
    Thanks
    2
    Thanked 9 Times in 9 Posts
    replace this style in your css

    Code:
    #content {
    	padding-left: 15px;
    	float: left;
    	width: 518px;
    	padding-right: 15px;
    	clear:right; 
    	background-color:#FFFFFF
    }
    vineet

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The following should fix it.
    Code:
    #content {/*styles.css (line 78)*/
    margin-left:230px;
    padding-left:15px;
    padding-right:15px;
    /*float:left;
    width:518px;*/
    }
    You don't need to apply floats and widths on both columns to make a 2 column layout.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by stexia View Post
    no no.. =) not the back ground.. the GREY part in the body. If you click on the other links you will see how it is suppose to look. The part im talking about it a little space between the grey text box and the green and yellow boxes. =) see it?

    Stexia*
    Duh, I see what you mean. Giving #content a white background does hide the problem.
    Another way is to put #bottomContentInternal where it belongs -
    Code:
    #bottomContentInternal {
    	background-color: #E4E4E6;
    	font-family: Arial, Helvetica, sans-serif;
    	font-size: 13px;
    	margin-right: 18px;
    	margin-left: 18px;
    	margin-top: 18px;
    	margin-bottom: 18px;
    clear:both;
    }
    The same thing is happening with #footer. If you remove the background color from #bottomContentInternal you can see the footer extends up the same way.
    Same fix works there too -
    Code:
    #footer {
    	background-color: #0C7926;
    clear: both;
    }
    -----> ab has shown you the best fix though. See his post above mine.
    Floating one column and margining the other over has the added benefit of avoiding an IE bug or two.
    Last edited by Excavator; 12-31-2009 at 08:40 AM.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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