...

View Full Version : FF2 centering nightmare



markosaurus
12-16-2009, 05:20 PM
HELP!

I'm having a nightmare with this. (Past and Present Buttons)

It works great centering the div in everything, except FF2.

http://192.168.1.2:5002/learning_new/index.php?cat=S

If you click into the secondary category, it centers fine using the same divs and css in there. I can't work it out.

I've centered them using a container div set to display:inline-block; with text-align:center;

Any help, greatly appreciated.

Excavator
12-16-2009, 05:29 PM
Hello markosaurus,
That's a dead link right now. I'll try it again later.

For now though this may or may not help.
You need 3 things to center an element:

DocType Declaration
An element with a width
That elements left/right margins set to auto

SB65
12-16-2009, 05:35 PM
http://192.168.1.2:5002/learning_new/index.php?cat=S

That looks like an internal ip address to me....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum