user3848207
user3848207

Reputation: 4987

Creating a margin for html page with Twitter Bootstrap

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

Answers (1)

rb612
rb612

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

Related Questions