Bob Schneider
asked on
Page not centering
What causes a wrapper div to center? I have a site that centers on some pages and not others and I have another site that centers in IE but not FF. Something is wreaking havoc with the styles. I am guessing I might be doing something wrong with my internal style sheets?
Here are the body and div styles in the site that works in ie but not ff.
Here are the body and div styles in the site that works in ie but not ff.
body{
margin:0;
padding:0;
height:100%;
font-family:arial, serif;
text-align:center;
background-color:#ececec;
}
#wrap{
position:relative;
height:100%;
min-height:95%;
width:1000px;
display:block;
margin:0 auto;
padding:0;
background-color:#fff;
text-align:left;
}
#wrap:after{
display:block;
clear:both;
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Why 715px? It doesn't quite center so I tried to modify that width and then it went back to where it was.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Exactly what I needed. Thanks!
ASKER
Open in new window