Simple CSS Scale-Nine Layout
Posted
by rfkrocktk
on Stack Overflow
See other posts from Stack Overflow
or by rfkrocktk
Published on 2010-05-06T00:38:55Z
Indexed on
2010/05/06
0:48 UTC
Read the original article
Hit count: 932
After all these years, I still haven't learned CSS layout, so bear with me. I'm trying to create a container with rounded corners that I generated in Photoshop. The background of the container is white, so I have eight images: top-left-corner, top, top-right-corner, right, bottom-right-corner, bottom, bottom-left-corner, and left.
The edges have a drop shadow around them so yes, I do need 8 sides. How would I lay this out in CSS? I tried and failed miserably to do it with a table + CSS. How would I do it using divs?
© Stack Overflow or respective owner