Jump to content


Photo

CSS Layout help


  • Please log in to reply
2 replies to this topic

#1 adamwhiles

adamwhiles
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 29 July 2006 - 09:31 PM

Ok i have been working a new layout for my site and for some reason internet explorer displays it correctly but in firefox the text goes over the footer. The only problem in IE is the little strip where it says // phpshack // home is a little off and doesn't line up, but in firefox that part is perfect.

Here is the link: http://www.phpshack.net/testing/


here is my css code for the site:

#main {
	width: 800px;
	min-height: 600px;
	text-align:center;
}

#header {
width: 792px;
height: 101px;
background-image:url(header.jpg);
background-repeat:no-repeat;

}

#mid_header {
width: 792px;
height: 132px;
background-image:url(bottom_header.jpg);
background-repeat:no-repeat;
}

#mid_bannerad {
padding-top: 20px;
width: 792px;
height: 80px;
}

#mid_strip {
width: 792px;
height: 29px;
text-align:left;
padding-left:10px;
padding-top:2px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: small;
font-weight:900;
background-image:url(strip.jpg);
background-repeat:no-repeat;
}
#content {
min-height: 600px;
}
#left_nav {
float: left;
padding-left:10px;
width: 200px;
height:auto;
text-align: left;
border-right: dashed;
border-right-color:#000000;
}

#right_content {
text-align: left;
padding-left:5px;
height:auto;
}

#footer {
width: 792px;
height: 33px;
background-image:url(footer.jpg);
background-repeat:no-repeat;
}


Then my HTML code is:

<!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=iso-8859-1" />
<title>phpShack // PHP Tutorials and Forums</title>
<link rel="stylesheet" href="main_style.css" type="text/css" />
</head>

<body>

<div id="main">
<div id="header"></div>
<div id="mid_header">
<div id="mid_bannerad">
<script type="text/javascript"><!--
google_ad_client = "pub-6105630547956573";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "image";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
<div id="mid_strip">// phpShack // HOME</div>
<div id="content">
<div id="left_nav">
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />
asdasdasdasdas<br />
asdasdasdasdasd <br />asdasdasdasdas<br />
asdasdasdasdasd <br />
</div>
<div id="right_content">
asdasdasdasda
</div>
</div>
<div id="footer"></div>
</div>
</body>
</html>



#2 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 30 July 2006 - 05:14 AM

add clear: both; to the footer, that should take care of the over lapping. Your "// phpshack // home" looks fine to me in both IE and FF.

-Chris

#3 adamwhiles

adamwhiles
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 30 July 2006 - 06:44 AM

the text is not the problem, take a look at the image behind "// phpshack // home" its a little off in IE but fine in firefox




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users