troubleshooting Question

background-image:url Not working as should

Avatar of tonelm54
tonelm54 asked on
CSS
1 Comment1 Solution324 ViewsLast Modified:
Good morning,
Ive been playing around tring to get the following CSS statment working, and stuck with the "background-image:url", using the following code, it does not draw my backgroun
.divRoundedTopLeft { width:21px; height:21px; background-image:url('../images/RoundedCorners/topLeft.png'); background-repeat:no-repeat; float:left; }

However if I put the image in the same folder, it works fine:-
.divRoundedTopLeft { width:21px; height:21px; background-image:url('topLeft.png'); background-repeat:no-repeat; float:left; }

If I navigate to http://localhoat/images/RoundedCorners/topLeft.png then I can see my image, so doesnt look like an issue with the folder names and me miss-spelling it.

I dont really want to put the images in the same folder as the file, so is it possible to tell it to goto a folder instead?

Any ideas?

Thank you
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros