<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<div class="container">
<h1>Example</h1>
<p>This is a demonstration of how to use full-width background while keeping the regular .container grid.</p>
</div>
<div class="specialBackground">
<div class="container">
<h2>Section 2</h2>
<p>Some not too long text not too long text not too long text not too long text not too long text not too long text not too long text not too long text.</p>
</div>
</div>
<div class="container">
<h2>Section 3</h2>
<p>Some not too long text not too long text not too long text not too long text not too long text not too long text not too long text not too long text.</p>
<h3>Section 3.1</h3>
<p>Some very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text very long text.</p>
</div>
CSS
.specialBackground{
background-color: gold;
/* replace with your own background settings */
}
JavaScript
\
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.