Content box goes under the sidebar

Discussion in 'CSS' started by DhDDL, Feb 20, 2010.

  1. #1
    I don't think the css is properly coded because a few years ago i had someone had something to fix it but i don't remember what that was :(. So basically i think its because of the resolution size or some relation to that which causes the template to screw up. Please help me !

    /* CSS Document */
    body {
    	margin:0;
    	background-image:url(images/headbg.jpg);
    	background-repeat:repeat-x;
    	background-color:#1c2932;
    }
    #banner {
    	background-image:url(images/logo.jpg);
    	background-repeat:no-repeat;
    	background-position:center;
    	height:162px;
    }
    #banner .nav {
    	margin-top:137px;
    	margin-left:254px;
    	height:25px;
    	float:left;
    }
    .container {
    	background:url(images/content_bg.jpg) repeat-x;
    	background-color:#efefef;
    	margin:0;
    	text-align:left;
    	width:492px;
    	height:910px;
    	margin-top:5px;
    	margin-left:254px;
    	padding-top:10px;
    	padding-left:10px;
    }
    .sidecontainer {
    	width:245px;
    	margin:0;
    	margin-top:10px;
    	margin-right:210px ;
    	margin-left: auto;
    	float:right;
    	height:900px;
    	font-family:Tahoma;
    	font-size:11px;
    }
    .linkcontainer {
    	width:235px;
    	margin:0;
    	margin-top:10px;
    	margin-left:0px;
    	float:left;
    	height:160px;
    	font-family:Tahoma;
    	font-size:11px;
    }
    #content {
    	font-family:Tahoma;
    	font-size:11px;
    	color:#000000;
    }
    #content .head {
    	margin:0;
    	font-family:Tahoma;
    	font-size:11px;
    	color:#000000;
    	padding-left:40px;
    	padding-top:10px;
    	padding-bottom:10px;
    	border-bottom:1px dotted #000000;
    	margin-right:15px;
    }
    #content p {
    	font-family:Tahoma;
    	font-size:11px;
    	color:#000000;
    	margin-right:10px;
    }
    .spacer {
    	background-image: url(images/spacer.jpg);
    	background-repeat:no-repeat;
    	height:10px;
    	margin-top:20px;
    	margin-left:260px;
    }
    .spacerx {
    	background-image:url(images/space2.jpg);
    	background-repeat:no-repeat;
    	height:2px;
    	margin-right:10px;
    	padding-bottom:10px;
    }
    .search {
    	background-color:#f0f0f0;
    	border-color:#ffffff 1px;
    	background-repeat:no-repeat;
    	height:27px;
    	width:182px;
    	margin-top:3px;
    }
    #catagorybar {	  
    	background-color: #152129;
    	width:224px;
    	height:27px;
    	margin: 0px auto;
    	text-align: left;
    	float:left;
    	margin-top:3px;
    	color:#dcdcdc;
    }
    #catagorybar li {
    	padding:0;
    	margin:0;
    	margin-top:5px;
    	margin-left:25px;
    	list-style-type:square;
    	font-size:11px;
    }
    #friendsbar {	  
    	background-color: #152129;
    	width:224px;
    	height:27px;
    	margin: 0px auto;
    	text-align: left;
    	float:left;
    	margin-top:3px;
    	color:#dcdcdc;
    }
    #friendsbar li {
    	padding:0;
    	margin:0;
    	margin-top:5px;
    	margin-left:25px;
    	list-style-type:square;
    	font-size:11px;
    }
    .pages {
    	font-family:Tahoma;
    	font-size:11px;
    	color:#000000;
    }
    .pages a {
    	color:#000000;
    	text-decoration:none;
    }
    .pages a:hover {
    	color:#000000;
    	text-decoration:underline;
    }
    .footer {
    	background-image:url(images/footerbg.jpg);
    	background-repeat:repeat-x;
    	background-position:bottom;
    	margin:0;
    	height:135px;
    }
    .footer p {
    	font-family:Tahoma;
    	font-size:11px;
    	padding-bottom:5px;
    	margin:0px;
    	margin-left:254px;
    }
    .footer a {
    	color:#000000;
    	text-decoration:none;
    }
    .footer a:visited {
    	color:#000000;
    	text-decoration:none;
    }
    .footer a:hover {
    	color:#e75974;
    	text-decoration:none;
    }
    	
    	
    	
    Code (markup):
     
    DhDDL, Feb 20, 2010 IP
  2. DhDDL

    DhDDL Peon

    Messages:
    194
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can anyone help?
     
    DhDDL, Feb 21, 2010 IP
  3. tajo

    tajo Peon

    Messages:
    108
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    0
    #3
    You probably see this because the wrapper container isn't wide enough. Try making your website wider and see if the two columns sit side by side again
     
    tajo, Feb 21, 2010 IP
  4. DhDDL

    DhDDL Peon

    Messages:
    194
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think something has to be made static or something.
     
    DhDDL, Feb 21, 2010 IP
  5. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #5
    add a float:left; to #content
     
    killaklown, Feb 21, 2010 IP