The issue is with the image path inside the css files. I cant figure out what am i missing ?Perhaps you are working in a dev setup that wont support a root relative path? AnnaMediaGirl Mar 10 13 at 18:17. Now assume I want to bundle both jQuerys style.css and Bootstrap bootstrap. css. I will save this bundled file in assets/bundled.css.This library makes it possible to either use absolute rewriting (from a root directory) or alter relative image paths based on a new output directory. I have a css file that links to some images for a slider and i want to change the relative path to an absolute path.Are you sure the folder is in the website root? And does the bg.png image exist? Does your site have .htaccess file in the root? By placing the same files and folders in a local folder, i.e. website, this folder acts as the root directory, so the paths are still correct.I assumed that the background images were relative to the page and not the external css file. 2.
Relative path from site root. Image source: Relative Path or URL?It uses directions From the source page To the destination page, The result is a root relative path Firefox cant find image using relative path css background using relative path. Type search string and press Enter. 1 solution. DXR.axd css backgroud- image relative path.Is there a way to specify the root application path so that when the .axd files are generated, the background image paths are pre-fixed with "/root". Firefox cant find image using relative path css background using relative path.To demonstrate the difference between absolute, relative, and root- relative URLs, the root-relative URL would look like this Also when using fonts included by yarn/npm you got to point it to the right folder: I use this in variables.scss roboto-font- path: "materialize-css/fonts/roboto/" !default Thats why you need to specify your documents folder Apr 19, 2011 To be relative to the root directory, just start the URI with a / andKeep in mind that image path should be relative to your css, or absolute if it starts with /. This should be common knowledge, but it is relative, so how to get this url absolute?But beware this will also trigger the assetpath helper to return absolute urls as well, but chances are very high, that if you want absolute urls in the css you also want it everywhere. The first route works fine, finding the image at mydomain.com/images /logotype.svg.From what I have read I have the right syntax for root relative paths in the html.