Happy new year to all!
I’ve got a problem to include Data URI in css.
I first tried with Teline and it was ok, but i found Nex great and I changed with it to build a site with.
For instance, to replace arrow3.png with a data:uri in css/menu/css.css, I replace :
background: url("../../images/arrow3.png") no-repeat left center ;
with
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAEAQMAAAB4CLc+AAAABlBMVEXMzMz////TjRV2AAAAAnRSTlP/AOW3MEoAAAAQSURBVAgdY2BgaGI4xvAOAAXSAjdsWkbIAAAAAElFTkSuQmCC") no-repeat left center ;
That should be ok, but the answer is :
http://www.site.com/templates/ja_nex/css/menu/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAEAQMAAAB4CLc+AAAABlBMVEXMzMz////TjRV2AAAAAnRSTlP/AOW3MEoAAAAQSURBVAgdY2BgaGI4xvAOAAXSAjdsWkbIAAAAAElFTkSuQmCC (status: 404)
It’s looking for the image in the root.
Could you tell me what’s new in Nex to do this, please?
Data URI scheme is a good way to optimize a site reducing HTTP requests.
http://en.wikipedia.org/wiki/Data_URI_scheme#Inclusion_in_HTML_or_CSS_using_PHP