Fixed headers with a prescribed width

by audetwebdesign

HTML

<div id="sidebar">
</div>
<div id="content">
    <section>
        <h1>Heading 1</h1>
        <p>
            Collaboratively administrate empowered markets via plug-and-play networks. Dynamically procrastinate B2C users after installed base benefits. Dramatically visualize customer directed convergence without revolutionary ROI.
        </p>
    </section>
    <section>
        <h1>Heading 2</h1>
        <p>
            Efficiently unleash cross-media information without cross-media value. Quickly maximize timely deliverables for real-time schemas. Dramatically maintain clicks-and-mortar solutions without functional solutions.
        </p>
    </section>
</div>

CSS

#sidebar {
    float: left;
    background: #FF0000;
    width: 200px;
    height: 5000px;
}

section {
    float: left;
    width: 25%;
}

h1 {
    position: fixed;
    width: 25%;
    background: #00FF00;
    text-align: center;
}