Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layout alignment problem.

Status
Not open for further replies.

J741

Technical User
Jul 3, 2001
528
CA
The following code looks good in IE 6, but not in Firefox or Netscape. The DIV elements are centered in IE but not Firefox or Netscape. Can anyone tell me why, and what to do about it?

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Layout test</title>
<style type="text/css">
<!--
body { background-color:red;  text-align:center; }
#Page_Container { background-color:blue;  width:950px; }
#Main_Menu { background-color:green; width:650px; height:150px: }
#Right_Column { background-color:gray; width:200px; height:500px; float:right; }
#Main_Content { background-color:orange; width:600px; height:400px }
#Footer { background-color:pink; width:700px; }
--></style>
</head>
<body>
<DIV ID="Page_Container">
  <DIV ID="Right_Column">
	This will be a news feed.
	</DIV>
  <DIV ID="Main_Menu">
	This will be a menu.
	</DIV>
	<P><P>
	<DIV ID="Main_Content">
	This will have most of the page content.
	</DIV>
	<P><P>
	<DIV ID="Footer">
	This will be the page footer.
	</DIV>
</DIV>

</body>
</html>

Thanks.

- James.

My memory is not as good as it should be, and neither is my memory.

I have forgotten more than I can remember
 
Also, the "Right_Column" stays within the "Paige_Container" in IE but not in Firefox or Netscape. Can anyone tell me why?

- James.


My memory is not as good as it should be, and neither is my memory.

I have forgotten more than I can remember
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top