This one should be a challenge, i should think.
Here's the situation:
I have a typical content box sliced into three images, namely: the header.gif (200 x 20 pixels), the content.gif (1 pixel in height, set to repeat vertically downwards) and of course, the footer.gif (200 x 20 pixels).
I coded the contentbox using CSS:
Code:
#container
{
width: 200px
padding: 0;
margin: 0;
}
#header
{
background: url('header.gif') no repeat;
padding: 0;
margin: 0;
height: 20px;
width: 200px;
}
#content
{
background-image: url('content.gif') repeat-y;
padding: 0;
margin: 0;
width: 200px;
}
#footer
{
background: url('footer.gif') no repeat;
padding: 0;
margin: 0;
height: 20px;
width: 200px;
}
And the html file:
Code:
<div id="container">
<div id="header"></div>
<div id="content"> Content goes here </div>
<div id="footer"></div>
</div>
So that's pretty basic. As you add more content between the content div tags, then the content.gif will automatically repeat itself vertically downwards, since the content.gif is set as the background image of the content div tags. But what if I wanted to add an image as a background of the content area, let's say an image of a puppy. But the background-image is already the content.gif.
The final work should look like this:
Hmm, what do you say, challenging? A client actually requested that I should have an image as a background of the content boxes, but i'm not sure how i can do that. Any help would be appreciated. Oh, and hi