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

How To Set The Background in External CSS 1

Status
Not open for further replies.

bburnell

Programmer
Joined
Sep 15, 2000
Messages
560
Location
US
Hi,
This may be an easy question, but I've been having problems with this. Everything else in the CSS works fine.
Thanks!
Brett (smsforce) E-mail me at smsforce@smsforce.com

Please visit my websites!
 
Hi Brett,

Try this in your css:

background:url(YourDirectoryPath\yourImage.jpg);

or

background-image:url(YourDirectoryPath\yourImage.jpg);

If you have scrolling pages you can fix the background while your tekst is scrolling with:

background-attachment: fixed; (this is IE only)

For more CSS properties by IE4 look at thread215-113187
For more CSS properties by IE3 look at thread215-113175

Hope this helps,
Erik



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top