Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

background image without tiling 1

Status
Not open for further replies.

TheDemon

Programmer
Feb 7, 2000
108
GB
Does anyone know how you add a background image just the once, so that it doesn't tile?<br><br>Thank you!
 
try something like this:<br><br>&lt;div id=&quot;Stuff_with_backround&quot; style=&quot;background-image url(_Url_here_); background-repeat: no-repeat;&quot;&gt;<br><br>by the same token, you could use background-repeat: x; and background-repeat: y; making the background repeat along the top or left side of the div.<br><br>if you want to make the whole page like that, you can use that same style=&quot;...&quot; attribute in the &lt;BODY&gt; tag (I think), or you could try using the BGPROPERTIES=FIXED in the tag, but that also has some other, possably unexpected results.<br> <p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
 
Thank you, theEclipse. I thought it was something along those lines but could only see it working in CSS, so I'm gonna try it this morning. <br><br>Cheers m8!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top