开发者

how make this page center on IE 9

i have a little problem here, this page at firefox, opera, chrome, has already center, but at IE 9开发者_C百科 this page still at left.. tq for help....


First you need to change your width to something less than 100%

Then you need to change

margin-top: 50px;
margin-left: 0 auto;
margin-right: auto;

to

margin: 50px auto 0;

and it should work.

EDIT

I should have taken a closer look!

I would also change your .container. Give width:auto; a fixed width, 900px for example.

http://jsfiddle.net/jasongennaro/yj7mu/3/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜