Web Design Forums

Welcome! Please register or log in: Forgot your password? Why register?
You are here: Web Design Forums » Web Design Help » HTML and CSS Help » display error in css RSS

display error in css

This thread was started by palani and has been viewed 127 times, and contains 1 replies, with the last reply made by mlseim.
Post Reply
1
View palani's reputation
palani, WDF Noob Private message  
Posted February 8 '10 at 03:26 AM
      Posts: 1
the below code display content as center in firefox .but not in IE .i dont know what is the problem pls help

<html>
<head>
<style type="text/css">



body
{
padding:0;
margin:0;
background:#eee;

}
#container
{
width:900px;
margin:0 auto;
background:#ccc;
}

#head{height:250;backgroundrange;}

</style>
</head>

<body>
<div id="container">
frgts
<div id ="head">
asrgrtuyt67
</div>

</div>
</body>
</html>

Advertisement Register for free to hide these ads and participate in discussions!

2
1,251 points at 99% Moderator Repute
mlseim, WDF Moderator Private message  
Posted February 8 '10 at 09:17 AM
      Posts: 3,096
body
{
padding:0;
margin:0 auto;
background:#eee;
width:900px;
text-align:center;
}
#container
{
width:900px;
margin:0 auto;
background:#ccc;
text-align:left;
}
If it's zero degrees outside today, and it's supposed to be twice as cold tomorrow, how cold is it going to be?

Post Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I display html and css code on a page? mehashi HTML and CSS Help 2 May 26 '09 10:02 AM
CSS Link Images Rollover Display Problems aburningflame HTML and CSS Help 4 January 13 '09 01:11 AM
How To Structure CSS to Display Correctly in IE jrucco HTML and CSS Help 5 June 27 '08 10:26 AM
Need someone who is great at Firexo/IE CSS discrepency issues... kennedrw HTML and CSS Help 1 November 14 '07 03:21 AM
Problems with the display of my main text area in css ShaunMac HTML and CSS Help 4 August 23 '06 05:38 PM