generalexperts Posted February 16, 2014 Share Posted February 16, 2014 (edited) I am trying to use an image more than once on my site. I have the image that is being used for the blocktopmenu, file path is blocktopmenu/css/center.gif. When I try to use the same gif in the blockcart, the directory automatically directs to url ("http://www.mydomain.com/modules/blockcart/center.gif"). I need it to go to http://www.mydomain.com/modules/blocktopmenu/css/center.gif. How do I get the URL to back up a couple directories? Eventually I am going to redo the whole site with sprites, but I need to make sure I like everything first. But for now I'd at least like to keep things somewhat organized. Thank you! Edited February 16, 2014 by generalexperts (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 16, 2014 Share Posted February 16, 2014 if you use css styles in other module css stylesheet, you have to create correct path, for example background:url('../../blocktopmenu/img/center.jpg'); Link to comment Share on other sites More sharing options...
generalexperts Posted February 16, 2014 Author Share Posted February 16, 2014 (edited) Got it, thank you again! Edited February 16, 2014 by generalexperts (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now