Please help me (CSS)

crandall87

New Member
Your whole page is in a container called mainbody by the looks of it but you have no css giving this class any attributes. Try adding this to your css:

#mainbody {margin:0 auto;} I always use an auto margin to centre align containers in ff.
 

qadisha

New Member
Centering body in FF and IE

Or else forget about your "mainbody" class altogether and add the following to "body":

text-align: center;
margin-left: auto;
margin-right: auto;

text-align takes care of IE and the other two are necessary for FF.

As well as that, I don't understand why you repeat "class" and "id" for each style. If a style comes only once on a particular page you can use "id". If a style is likely to come several times on a page, use "class". Personally I always use "class" but I imagine purists will say that's wrong.
 
Top