Quote:
Originally Posted by nickburrett
Hello
I am trying to get the background image images/home-middle.png to appear 186 pixels below images/home-top.png and failing!
Code:
.home-content { background-image: url(images/home-top.png), url(images/home-middle.png); background-repeat: no-repeat, repeat-y; background-position: 0px 0px, 0px 186px; width: 321px; height: 400px; }
In this example images/home-middle.png seems to start 0px from the top rather than 186px from the top.
www.burrett.net/cssissues/cssissues.html
Can you help me?
|
i would suggest doing this istead cause with that it looks a bit way to messy.
CSS
Code:
.home-top { background: no-repeat;
position: absolute;
left: 0px; top: 0px;
}
.home-middle { background-repeat: repeat-y;
position: absolute;
left: 0px; top: 186px;
}
HTML coding for the CSS only. (meaning not the whole entire html code just the part that is gonna be affected by the css)
Code:
<img src="images/home-top.png" class="home-top">
<img src="images/home-middle.png" class="home-middle">
Hope this helps and if not just say so and ill try to help you further.