Apologies for this sketch, but seems to convey my question best:
+---------------+----------------+-----+
| div | v.div | d |
| | | i |
+----+----------+----------------+ v |
| v | | |
| . | +-----+
| d | | v |
| i | DIV | . |
| v | (content) | d |
| | variable size | i |
+----+ | v |
| d | | |
| i +------------------------+--+-----+
| v | v.div | div |
+----+------------------------+--------+
I am trying to figure out the CSS for the 8 DIVs surrounding some variable sized content. Each of those DIVs has a background-image such that this will all look like a shape-cornered picture frame wrapping the center content. The outer and especially the corner DIVs also need to be transparent so some tricks I've used before for doing this don't work so well. Clearly the DIV's marked 'v.div' must expand to fill variable height and width; the corner DIVs are fixed-size.
With some image cutting and pasting, I could possibly restrict the problem to something like this, if the previous just can't be done:
+---------------+--------------+-------+
| div | v.div | div |
| | | |
+----+----------+--------------+-+-----+
| v | | |
| . | DIV | v |
| d | (content) | . |
| i | variable size | d |
| v | | i |
| | | v |
+----+---+--------------------+--+-----+
| div | v.div | div |
+--------+--------------------+--------+
Anyone ever done anything like this willing to share their solution or an alternative approach?