PDA

View Full Version : Internet Explorer Problem



Nate1n22
12 Dec 2009, 07:04 PM
http://www.speedyupload.net

The box with the upload and the content isn't in the center in IE, but it is in Chrome and Firefox.

How do I make it center in IE?

Agrunyan
12 Dec 2009, 08:01 PM
Add "text-align: center;" to the body tag in the CSS.

Also in your CSS, some elements (such as the body tag) are repeated.




@charset "utf-8";
/* CSS Document */
body {
background-color:#E2E2E2;
background-image:url(images/bg.png);
background-attachment:fixed;
background-repeat:repeat-x;
text-align: center;
}
.content {
background:url(images/content.png);
height:285px;
margin-left:auto;
margin-right:auto;
width:560px;
}
.content center p {
color: #666;
}
a:link {
text-decoration: underline;
}
a:visited {
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: underline;
}
body {
background-color:#E2E2E2;
background-image:url(images/bg.png);
background-attachment:fixed;
background-repeat:repeat-x;
}
.content {
background:url(images/content.png);
height:285px;
margin-left:auto;
margin-right:auto;
width:560px;
}
.content center {
color: #333;
}