Alt-Web Design & Publishing
CSS3 Demo - One Division with Multiple Background Images
Description:
CSS3 is not fully supported in all modern browsers yet. But 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 March 2010:
- Safari for win/mac 3.0+
- Safari for iPhone
- Google Chrome
- Konqueror 2.5+
- OmniWeb 5.5 for mac
- Firefox 3.6+
- Nokia S60 Browser (3rd Ed)+
Method:
3 Image Slices
from a Photoshop™ comp

top
middle
bottom
CSS3 Code
#wrapper {
text-align:center;
margin:0 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 background color was added last for devices that may have images turned off.*/
Html Code
<div id="wrapper">
<p>Some text goes here.</p>
<p>Some more text goes here.</p>
</div>
Demos:
- Photoshop Tutorial - Box with Contoured Edges
- Bringing Image Slices into a CSS Layout
- CSS Disjointed Text Rollovers
- CSS Disjointed Menu Rollover
- Floats & Margins, 3 CSS Boxes
- CSS Menus
- CSS Sprites Demo I
- CSS Sprites Demo II
- CSS2 Captions on Floated Images
- CSS2 Sticky Text
- CSS3 Multi-Backgrounds
- Fixed Background Image
- Liquid Header
- Multi-Scrollbars
CSS Templates:
- Centered, Fixed-Width page with floats
- Centered, Liquid-Width page with floats
- I-Page, Liquid Header & Footer
- 1 Column, Fixed-Width Centered
- Faux Column, Fixed-Width Centered
- Right Column, Fixed-Width Centered
- 3 Column, Fixed-Width Centered
- 3 Column, Liquid Layout
- User Adjustable Page
- Horizontal & Vertical Centered
