Web Hosting Talk







View Full Version : Quickie CSS problem on a page


fastnoc
05-12-2007, 04:23 AM
I've been working on a new site.

I'm going to split an image so it can be used in a scaling background of a table. but I'm having a problem I can't figure out.

http://new.3gals.com/pgm/dashboard.php

In FF the content of the container isn't lining up center.

I tried adding the following style to the container but it still isn't working

margin-left:auto;
margin-right:auto;

That's the only way i know to center something in FF. Whatever the case you will see that it's not happening. I tried centering the table, the td as well as the container and I can't get it.

I've removed the stuff i tried because there's no sense in code that isn't needed.

Anyone see the problem here?

killapix
05-12-2007, 06:17 AM
I can't access your URL but if I understand correctly you want the inline content to align center you need to add the text-align: center; to your id or class.
The margin auto will align the container itself only.

fastnoc
05-12-2007, 06:59 AM
Thanks for the response!

I don't want the text aligned center.

Maybe you can see it better on the web instead of on a server at a residence.

http://new.e-referrer.com/pgm/dashboard.php

crandall87
05-13-2007, 01:20 PM
It looks to be in the center to me. I'm guessing it has been fixed. You may want the text in the middle to come right a bit. You can do this with padding.