Ive add a CSS background, but it doesn't work that well. On some computers it does, on others, it does not. Any suggestions would be appreciated.
Here is my code:
.CenterColumnSub %26#123;
background-image: url(/Images/Pages/resort-bkgd-nologo.gif...
background-repeat:repeat;
overflow: auto
width: 610px;
height: 250px;
vertical-align: top;
padding-bottom: 20px;
Why won't CSS background image work on other computers?computer
I suspect it has to do with your background-image property. You have it coded to /Images/Pages/resort-bkgd. This requires that each computer has the directory /Images/Pages. The correct way would be to reference the page relative to the html page. I assume the Images directory is in your web directory. If it is, you URL should be (./Images/Pages/resort-bkgd.
Notice all I did was add a "." in front of the first slash. If the web is not in your web directory, then you need a complete path to the image either through your internal network //hostcomputer/Images/Pages...
Or you can point to a hosted picture using a web address.
Hope this helps,
Why won't CSS background image work on other computers?free spyware
What type of browser is the code not working on? If it's an older browser, then that's your problem.
also I noticed you left out a semicolon after overflow: auto; %26lt;--
That's probably just a typo here in answers, but you never know.
Try putting double quotes around the path and filename like this:
background-image: url("Images/Pages/resort-bkgd.jpg")
Can't guarantee it will work though
No comments:
Post a Comment