The Bootstrap container class has a width of 1170 pixels, which is great for displaying information, but I want the footer background to expand to the edges of the page, regardless of screen size. I have seen solutions suggesting setting a width of 2000 pixels, but I would prefer a cleaner solution if someone uses a monitor with a large screen width. I also do not want to override the width of the Bootstrap container class, because this will interfere with the positioning of my elements.
Is there a way in CSS to specify a background to spill it past a div?
Here is the JSFiddle
Here is my current .footer class, which is bound by the Bootstrap .container class:
.footer { float: left; background: #000; margin-top:40px; width: 100% !important; height: 500px; position: absolute; }
source share