Forum Moderators: open

Message Too Old, No Replies

Display a background image ONLY once?

         

flamesrock

7:09 am on Aug 30, 2004 (gmt 0)

10+ Year Member



I realize this is possible in CSS, but I have a site in html for which I'd like to display the background image only once. Is this possible?

-thanks

tedster

7:25 am on Aug 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You must use CSS or else the bckground image will tile - but the CSS doesn't need to be in an external .css file. It can be inline right in your html, by using the style attribute.

Josefu

7:26 am on Aug 30, 2004 (gmt 0)

10+ Year Member



.hominyStyle {

background-image : url(/hominy/hominy/images/hominyPic.jpg);
background-repeat: no-repeat;
background-position: center center;

}

...that should do the trick.

flamesrock

8:18 am on Aug 30, 2004 (gmt 0)

10+ Year Member



thankyou!

Josefu

5:46 am on Sep 1, 2004 (gmt 0)

10+ Year Member



...You're welcome. I learned it here too, over a year ago : )