Hi, I have some toolbars that have pretty simple structure: One wrap div that has header, content and footer divs inside. Header and footer have 3 divs inside them: left, middle and right.
To get a better idea of the structure, check this image: http://ezmundorf.110mb.com/toolbars.png
Reason for the structure is that I need rounded corners for the toolbar. That's why there's left and right div within header and footer.
Right now I'm using a fixed size for every single element. I'd want the middle divs of header and footer to scale with the content.
Since content gets a width, it scales the parent div to have the same width, now if I use 100% width for the divs I want to scale, they go over the other divs in the same parent, so I would need to set 100% width minus fixed amount of pixels (width of corner divs).
Can't find a way to do it. With javascript it wouldn't be hard, but I'd rather keep js out of my stylesheets.