Reputation: 4987
I would like to add a margin on the left-hand side on my html page. I am using Twitter Bootstrap.
Inside my html header, I have these lines;
<script src="misc/ui-bootstrap-tpls-0.11.0.min.js"></script>
<link href="misc/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="owncss/own.css" rel="stylesheet">
Inside own.css
, I have these lines;
body {
width: auto;
margin-left: 20px;
margin-right: auto;
}
Unfortunately, on the webpage, there is zero margin. What did I do wrong?
Upvotes: 1
Views: 55
Reputation: 5583
Sathish is correct, make sure your stylesheet is linked. Bootply to verify that your style, when linked correctly, will set a margin of 20px: http://www.bootply.com/DC0e2nPVPL
Upvotes: 1