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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a background not tiled???

Status
Not open for further replies.

lmarshall

MIS
Joined
Jun 11, 2002
Messages
108
Location
US
I need to make an image as a background but I don't want it to be tiled when the user uses more than 800x600 pixels.

Is there anyway to do this
 
Use a stylesheet, place it in the head of your html-file:

<style type=&quot;text/css&quot;>
<!--
body { background-image: url(path/to/image.jpg);background-repeat:no-repeat; }
-->
</style>

You could add these also (if prefered):
background-attachment: fixed; background-position:center;

HTH,

Quasibobo Don't eat yellow snow!
 
Or you can also try: <body bgproperties=fixed> I have not failed; I merely found 100,000 different ways of not succeding...
 
I'm sorry but that <bgproperties= fixed> didn't work anyother suggestions
 
Thas strange that bgproperties=fixed does not work, you put that in the <body tag> right?? I use that and it works fine for me...on all NS4+ and IE5+ browsers... I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top