I'm encountering an issue with my menu layout: I have a container div set at 960px, which has a background image (image 2). I need to position another element to the left of image 2 that fits the space available on the left, and on the right side, there should be a div that fits the remaining space.
So, for example, if the resolution is 1024px, the left element should be 32px wide, the center should always be 960px, and the right element should be 32px. If the resolution is 2048px, the left element would be 544px, center: 960px, and right: 544px.
<div id="container-menu">
<div id="left-bg">// This div needs to fit the space on the left //</div>
<div id="center-bg">// Place menu and logo content here //</div>
<div id="right-bg">// This div needs to fit the space on the right//</div>
</div>
Refer to the image below:
UPDATE:
Image 1 and Image 3 have a width of 1px
and use repeat-x
for the background
Image 2 has a width of 960px
All images are transparent PNG files.
Thank you!