CSS surround layout
Using these images and the css style below, create a page which has surrounding images which resize to fit both the content and the screen, as in www.accessibleireland.net.
Create 8 div tags with ids of left, bottom, right, top, topleft, topright, bottomright, bottomleft
HTML
Position the tags as shown below:
<html>
<body>
<div id="right">
<div id="top"></div>
<div id="left">
<div id="text"></div>
<div id="bottom"></div>
<div id="bottomleft"></div>
<div id="bottomright"></div>
</div>
</div>
<div id="topright"></div>
<div id="topleft"></div>
</body>
</html>
CSS
body
type
- font: "Comic Sans MS"
- size: small
- line height: 150%
- colour: #333333
background
- background colour: #d8cdab
box
- margin: 0px (all)
- padding: 0px (all)
left
background
- image: paperleftnew.jpg
- repeat: y
- horizontal: left
- vertical: top
box
- margin: 0px (all)
- padding: 0px (all)
bottom
background
- image: paperbottomnocorners.jpg
- repeat: x
- horizontal: center
- vertical: bottom
box
- width: 100%
- height: 60px
right
background
- image: paperrightnew.jpg
- repeat: y
- horizontal: right
- vertical: top
box
- width: 100%
- height: auto
positioning
- type: absolute
top
background
- image: papertopnocorners.jpg
- repeat: x
- horizontal: center
- vertical: top
box
- width: 100%
- height: 60px
positioning
- type: absolute
topleft
background
- image: papertopleftcorner.jpg
- repeat: no-repeat
- horizontal: left
- vertical: top
box
- width: 60px
- height: 60px
positioning
- type: absolute
- placement: left: 0px, top: 0px
topright
background
- image: papertoprightcorner.jpg
- repeat: no-repeat
- horizontal: right
- vertical: top
box
- width: 60px
- height: 60px
positioning
- type: absolute
- placement: right: 0px, top: 0px
bottomright
background
- image: paperbottomrightcorner.jpg
- repeat: no-repeat
- horizontal: right
- vertical: bottom
box
- width: 60px
- height: 60px
positioning
- type: absolute
- placement: right: 0px, bottom: 0px
bottomleft
background
- image: paperbottomleftcorner.jpg
- repeat: no-repeat
- horizontal: left
- vertical: bottom
box
- width: 60px
- height: 60px
positioning
- type: absolute
- placement: left: 0px, bottom: 0px
text
box
padding: right: 260px; left, top, bottom 60px
still having problems?
here's one that works... compare it with yours to see where you went wrong