Hi,
i'm running into problems using DIV's to style a contentbox for my website. It basically looks like this:
container
+--------------------------+
|+--+------------------+--+|
||c1| r1 |c2||
|+--+------------------+--+|
|| | | ||
|| | | ||
||r4| content |r2||
|| | | ||
|| | | ||
|+--+------------------+--+|
||c4| r3 |c3||
|+--+------------------+--+|
+--------------------------+
The width/height of r1,r2,r3 and r4 are unknown. They all have a 1px (tall or wide) gradient which repeats itself over the background.
The corners have 5x5px pngs (rounded, with transparant background).
The problem is that I do not know width or height of the content, and thus not of the r1 through r4's. There isn't really a way of saying in css:
r1 {width: container.width - 2x5px};
I know this could be done with javascript, but i want to avoid that.
Isn't it just easier to use a table in this case? It does look like a table to me :)