I am looking to achieve a fixed width header with specific layout requirements:
- A left-aligned div of variable width.
- A right-aligned div of variable width.
- An h2 element centered between the two divs, adjusting its size based on available space.
The content within the floated divs may vary in size.
Although I have attempted different methods, none have succeeded so far. While one solution involves absolutely positioning the outer divs and stretching the h2 element to full width while centering the text, I am hopeful that there is a more elegant way to accomplish this layout.