remp
10-30-2011, 06:10 AM
Hello everyone,
I have a situation with a background image, im want to show an image in the top section of the background and make the bottom expandable in case the div increases in height.
What i have so far is:
<div id="wrapper">
<div id="middle">
Content
</div>
</div>
#wrapper {background: background:url("../images/top.png")no-repeat;}
#middle {background-image:url(../images/middle.png) repeat-y;
Now, the problem with this is that the background image will be cut out at about 20px from the top and not show the rest of it because its covered by the middle section image.
in addition to that, i cannot add the "middle" image to the wrapper because the "top" image is a transparent div and it would show the middle image in the back anyways.
I have attached an image to try to help explain it. What do you guys think is the best way of handling this issue??
Appreciate your help in advance.
I have a situation with a background image, im want to show an image in the top section of the background and make the bottom expandable in case the div increases in height.
What i have so far is:
<div id="wrapper">
<div id="middle">
Content
</div>
</div>
#wrapper {background: background:url("../images/top.png")no-repeat;}
#middle {background-image:url(../images/middle.png) repeat-y;
Now, the problem with this is that the background image will be cut out at about 20px from the top and not show the rest of it because its covered by the middle section image.
in addition to that, i cannot add the "middle" image to the wrapper because the "top" image is a transparent div and it would show the middle image in the back anyways.
I have attached an image to try to help explain it. What do you guys think is the best way of handling this issue??
Appreciate your help in advance.