0

I'm using Bootstrap for my responsive layout. Within the .container I want to have a div which isn't limited to the width of the container. Furthermore I want it to be stretched over the full body. I could place the div outside the .container but I don't want to mess around with absolute positioning or similar.

How can I make a div 100% to the body, even if the parent div is not filling the whole width of the body.

.div {
    width: 100%;
    height: 6px;
}

Thanks

supersize
  • 13,764
  • 18
  • 74
  • 133

1 Answers1

0

Use class .container-fluid instead of .container. Bootstrap provide .container-fluid class to make full screen div.

If you are specific to some requirement please share code as well to understand better.

Shiljo
  • 3
  • 2