I am quite new to css but am trying to make a border for my site.
In photoshop i created a rectangle with rounded edges.
I cut away the top part of this to act as the image for the top of my page, and then did the same for the bottom part of the page. I also cut an image from the middle of the box to act as side borders, this bit would then repeat depending on the amount of content on the page.
The problem is that im not to sure how to tell the bottom of the box to sit at the end of the repeating sides, depedning how far they go. If you are not sure what i mean, here is an image of the top and sides together

I want the sides of what you can see above to repeat as much as ncessary and then the bottom which is identical to the top(just flipped) to sit on the bottom.
This is the code i have so far.
CSS
#bordertop
{
height: 52px;
background: url(images/bordertop.gif) no-repeat 0% 0%;
z-index:2;
}
#bordermiddle
{
height: 52px;
background: url(images/middle2.gif) repeat-y 0% 0%;
z-index:2;
}
#borderbottom
{
height: 52px;
background: url(images/borderbottom.gif) no-repeat 0% 0%;
z-index:2;
}
HTML
<div id=" wrapper"> <div id="bordertop" style="position: absolute; left: 12%; top: 4%; width: 950px; height: 170px;"> </div> <div id="bordermiddle" style="position: absolute; left: 12%; top: 13%; width: 960px; height: 170px;"> </div> <!-- <div id="header" style="position: absolute; left: 16%; top: 4%; width: 850px; height: 170px;"> </div>--> </div>
This post has been edited by jibber4568: 02 April 2008 - 09:31 AM

New Topic/Question
Reply



MultiQuote








|