I got this code (below) from a web html tutorial and added it into my index page and my css file. And all that shows on the web page is CONTENT GOES HERE.
I guess I need a corner image named box-bg? Can you provide me with a corner image? And how do I add a light-grey, thin border around the box?
Can you help me create a border for this code?
thanks
Code:
In index page:
<div class="box">
<div class="topleft">
<div class="topright">
<div>
CONTENT GOES HERE
</div>
</div>
</div>
<div class="bottomleft">
<div class="bottomright">
</div>
</div>
</div>
and in CSS:
.box div.topleft {
display: block;
background: url("../images/box-bg.png") top left no-repeat white;
padding: 2.0em 0em 0em 2.0em;
}
.box div.topright {
display: block;
background: url("../images/box-bg.png") top right no-repeat white;
padding: 2.0em;
margin: -2.0em 0 0 2.0em;
}
.box div.bottomleft {
display: block;
height: 45px;
margin-top: -2.0em;
background: url("../images/box-bg.png") bottom left no-repeat white;
}
.box div.bottomright {
display: block;
background: url("../images/box-bg.png") bottom right no-repeat white;
height: 45px;
margin-left: 3.0em;
}
|