KevinM1 Posted January 10, 2007 Share Posted January 10, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/33608-centering-problem/ Share on other sites More sharing options...
obsidian Posted January 10, 2007 Share Posted January 10, 2007 Did you actually try giving the containing element a "text-align: center;" and see if you can handle it that way? Quote Link to comment https://forums.phpfreaks.com/topic/33608-centering-problem/#findComment-157470 Share on other sites More sharing options...
KevinM1 Posted January 10, 2007 Author Share Posted January 10, 2007 [quote author=obsidian link=topic=121796.msg501450#msg501450 date=1168451538]Did you actually try giving the containing element a "text-align: center;" and see if you can handle it that way?[/quote]...Apparently I'm an idiot, heh. ;)Thanks! :D Quote Link to comment https://forums.phpfreaks.com/topic/33608-centering-problem/#findComment-157488 Share on other sites More sharing options...
KevinM1 Posted January 15, 2007 Author Share Posted January 15, 2007 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? Quote Link to comment https://forums.phpfreaks.com/topic/33608-centering-problem/#findComment-161559 Share on other sites More sharing options...
KevinM1 Posted January 16, 2007 Author Share Posted January 16, 2007 Still haven't found the answer myself, so bumpity bump bump. Quote Link to comment https://forums.phpfreaks.com/topic/33608-centering-problem/#findComment-162105 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.