|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Beginner grinner
|
A simple way to access image in CSS?
I am sure this has been asked before, but I can't find the answer.
In my drop down menu, I am using background images. Everything is working, but I have to access the images by their full name. Example: Code:
background: url(http://www.foshe.org/photos/559415325_dsQfH-O.jpg) no-repeat center top; |
|
|
|
|
#2
|
||
|
Scripting dude-volunteer
|
Quote:
http://www.foshe.org/photos/559415325_dsQfH-O.jpg or /photos/559415325_dsQfH-O.jpg When a URL starts with a "/", then it uses the same domain as the page it's being loaded from whatever that domain is.
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|