data:image url in css getting a site URL prefix

Commercial shopping Joomla template to easy create webshop with various extensions supported like ViruteMart, K2 and K2Store.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Mar 16, 2016 12:48 pm
Reply with quote
Report this post
Clipboard02.jpg


Trying to reduce http requests for the small png files in storebox. So I changed "cart_shadow.png" image file to base 64 in template.css and style1.css and get 404s because the css "now" contains : "http://anysite.com/templates/gk_storebox/css/data:image/png;base64...." instead of resolving the base64 as originally placed in the css as #btnCart { background-image:url('data:image/png;base64,iVB...gg==');}.
How do I keep the "http://anysite.com/templates/gk_storebox/css/" from being added?
see attached css screenshot.
Your quick reply is greatly appreciated!
Jay
User avatar
Fresh Boarder

teitbite
Sun Mar 20, 2016 10:54 am
Reply with quote
Report this post
Hi

I have no idea unfortunately, but I've found some informations about that, so You may find some help in this thread for example: https://css-tricks.com/data-uris/
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.