Jump to content

Centering problem


KevinM1

Recommended Posts

I'm trying to center the laptop and desktop images for my work's storefront page (found at http://www.thinkingmachinestore.com/storefront.php), but I can't seem to get them to center at all.  They stay glued to the left of the table cell*, even when I use margin-left: auto, margin-right: auto.  Any ideas?
Link to comment
https://forums.phpfreaks.com/topic/33608-centering-problem/
Share on other sites

I figured I'd ressurect this thread, as I seem to be having more centering issues.

In both my viewitem.php (since the page is created dynamically based on what the user clicks (yay $_GET), here's an instance of the problem: http://www.thinkingmachinestore.com/viewitem.php?cat=lenovo_desktops&id=1) and my checkout.php page (http://www.thinkingmachinestore.com/checkout.php), Firefox is ignoring my CSS that should be centering the contents of the lower table cell.  What's strange is that the lower-most form inputs are centered, but the rest isn't.  I use a bit of floating positioning for the form in checkout.php, so I couldn't be surprised if there was a conflict there, but my viewitem.php has no floats to interfere with the main div's positioning.  Everything appears correct in IE7.

Any ideas?
Link to comment
https://forums.phpfreaks.com/topic/33608-centering-problem/#findComment-161559
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.