Jump to content

Margine: auto problem


chrischen

Recommended Posts

OK So I spent hours trying to figure out why some page on my site were shifted to the left a little and some to the right.

 

Then I found out it depended on the height of the page, or how much content there was vertically.

 

For example this page, http://www.donatesome.org/shop is shifted to the left a little.

And this page: http://www.donatesome.org/beneficiary is normal.

 

I wandered onto another site on the net and it had the same problem. If the content on the page stretched far enough down everything shifts left a little.

 

If I remove margin: auto and have it float on the left side, it doesn't shift. Or if I set margin: 300px (a finite amount) it doesn't shift either. So what's wrong? Thanks.

Link to comment
https://forums.phpfreaks.com/topic/91566-margine-auto-problem/
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.