skip to Main Content

I want to create a footer in twitter bootstrap, but for some reasons it doesn’t stretch the full with.

<div id="footer">

</div>

#footer{
  width: 100%;
  height: 200px;
  background-color: #b85e45;
  padding-top: 50px;
  margin-top: 50px;
}

As you can see it’s pretty simple.

2

Answers


  1. Set the margin on “body” to “0”:

    body {
        margin:0px;
    }
    

    here is a working example

    Login or Signup to reply.
  2. Just add another style

    html, body {
    
    margin : 0;
    padding : 0;
    
    }
    

    It will work.

    Updated fiddle – https://jsfiddle.net/xxn5xoqk/1/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search