Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1974

Templates for Joomla! 4.x • Re: Linking to an image from Media Folder in CSS

$
0
0
Hi. If the image is located here http://localhost/mynewsite/images/box.jpg in the css should be url(/images/box.jpg).

If this does not work, provide a link to the site (upload on real hosting), because we can guess endlessly.

And by the way, I will assume that the reason may be in this httр://localhost/mynewsite/images...

Even on localhost, the site folder should have the appearance of a domain, for example mynewsite.loc
Hi Pavel, thanks for your help, whilst messing around with the code I have managed to sort the issue.

I needed to write it like this:

/mynewsite/images/box.jpg

and that fixed it. Can close this post now, thank you so much.

Statistics: Posted by mowen10 — Wed Apr 24, 2024 1:47 pm



Viewing all articles
Browse latest Browse all 1974

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>