简体   繁体   中英

IE Not Showing Page Margin

I have just got a developer to redesign my website and I have noticed one thing. In Google Chrome my web page has a nice margin around it, about 2". But on IE the page goes right up to the edge of the page and makes the page look super big. I want them both to have a margin around the page. The web page I am talking about is, web design quotes . Is the code I need to change in the CSS? Any help is appreciated.

This link will show you how to make 'responsive web designs' so it fits all resolutions.

http://blog.teamtreehouse.com/beginners-guide-to-responsive-web-design


You can try this. it helps you when it does not work in IE

body {
    margin:50px 0px; padding:0px;
    text-align:center;
    }

#Content {
    width:500px;
    margin:0px auto;
    text-align:left;
    padding:15px;
    border:1px dashed #333;
    background-color:#eee;
    }

in your body you give the margin and in your content you do an margin auto.

as explained here: http://bluerobot.com/web/css/center1.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM