CSS3 Rounded Corners Demo
One Division with Multiple Background Images
Description:
CSS3 is not fully supported in modern browsers. If your browser supports CSS3, you should see a beveled border around this entire page and a mouse in the lower right screen.
CHANGE STYLE SHEET: CSS3 | CSS2 | Alternate Version
Supported Browsers as of June 2008:
- Safari for win/mac 3.0+
- Konqueror 2.5+
- OmniWeb 5.5 for mac
- Safari for iPhone
- Nokia S60 Browser (3rd Ed)+
Method:
3 Image Slices
from a Photoshop™ comp
top
bottom
middle
CSS3 Code
#wrapper {
text-align:center;
height:100%;
margin:auto;
width: 1025px;/*image width minus padding if used*/
background: url(bottom.jpg) bottom right no-repeat, url(top.jpg) top left no-repeat, url(middle.jpg) left repeat-y #FBFBFB;}
/* NOTE: Stacking order matters. Topmost definitions have priority over bottommost. If an image is not visible, try moving it higher up the list. A similar background color was added last.*/
Html Code
<div id="wrapper">
<p>Some text goes here.</p>
<p>Some more text goes here.</p>
</div>
Related Links:
- Photoshop Tutorial - Making a White Box with Contoured Edges
- CSS2 - Bringing Image Slices into a CSS Layout
- CSS2 - Centered Page - Fixed Width
- CSS2 - Centered Page - Liquid Layout
- CSS2 - Captions on Floated Images
- CSS2 - Sticky-Text Demo