Currently, I am facing an issue with the header design of my website. The layout consists of 3 columns of divs and my goal is to have a middle column with a fixed width of 980px. In addition, I want the left side of the header to span across the entire browser window with a blue background color, while the right side should extend to the edge of the browser with a black background color.
The desired look is as follows:
<------------------------------[blue][center header][black]---------------------------->
After conducting some research, I came across examples featuring two columns where the left column has a fixed width and the right fills up the remaining space. I am curious how this concept can be adapted to fit my current situation.
Would the solution involve code similar to the following:
<div style="width:100%;">
<div style="display:table-cell; background-color:blue;"></div>
<div style="width: 980px;">my header</div>
<div style="display:table-cell; background-color:black;"></div>
</div>
I appreciate any guidance or feedback on this matter!