failed to load the given url using css background in codeigniter - css

I have a problem in loading my image, i got an error when i go to page source. The error it was saying is : Failed to load the given URL. When i copy the url and paste it in a browser, the image URL works fine. How can i solve this?
Here is the image of the error
Here is the path of my codeigniter picture

Try giving the relative path like
url("../uploaded_images/toguru.jpg")

try yoursite/(projectname)/asset/uploaded_images/togoru.jpg

Related

Unable to load the image from CSS file URL

I just started learning about web development and I got this issue about loading image from CSS file. I already tried many solutions that I can find in stack overflow but still doesn't work.
I tried to click on the URL: images/banner.jpg on vs code but it said: an error occur while loading an image. But then when I try to use the same path with <img src="images/banner.jpg" alt="banner">, it still loads
enter image description here
Just need to set ../ in image path like below:
background: url(../images/banner.jpg);

CSS Background image not showing up in Github Pages

My background image is not showing up when I open my GitHub pages. I've tried using both the actual pathway and Relative pathway but results are the same. This exact code works fine in VS Code in the live server so I do not know what the problem is, as I'm not getting any type of error message from GitHub. The picture is of the CSS file. Is this a code or GitHub problem??
enter image description here
Your root directory has index, img folder and css folder. Since you are in css folder you have to add .. to your path to go one level up ../img/background.jpg, this will do the work

Laravel css url does not work

Hello im trying to add a costum font from file to my website I have tried everything but I keep getting the 404 error, What am I doing wrong
this is my file structure with my css url code:
File structure with css url code
and this is the error i get:
error message
hope you guys can help me out !
You should fix the extension:
starwars.tff -> starwars.ttf
Your error message shows that the path to the file is not correct, and the file name is not correct.
Try setting your path absolutely
src:url("/fonts/starwars.ttf")
Make sure your file name with extension is correct.
starswars.ttf

Displaying / Linking To A PDF

i have just finished building a new website (wordpress), and i have a very strange problem linking to a PDF file.
I've uploaded a file to my website - http://goo.gl/tNxXYc - however when i enter the link in my browser it says that the page cannot be found, instead of showing the pdf.
Can anyone suggest what the problem might be? Thanks in advance for your help.
well, the given google.gl shortcode forwards to https://www.grasshopperlanguagecentre.com/wp-content/uploads/2014/11/hello.pdf
and that file does not exist.
So find the correct location of hello.pdf and link to that.
Please check permission of folder where pdf stored. Also try if any of following plug can solve your issue :
https://wordpress.org/plugins/search.php?q=pdf&sort=

Unable to load an image in sub folder present in the working directory- Google maps marker icon

A simple issue but unable to find a solution.
I have some image files that I placed in a subfolder called icons in my working directory in my ASP.NET website. I want to set an image during initialization to the markers on my Google map. But this isn't working. I have tried-
var marker= new google.maps.Marker({icon:'E:\cdeez\Sites\googletest 5\icons\busballon.png', position:pos,map:map});
It gives an error:
Not allowed to load local resource: file:///E:/cdeezSitesgoogletest%205icons%08usballon.png
However there is no problem if I place the image in the working directory. I guess giving the absolute path is not the right way too. So what is the right way in the above case.(Just a reminder- the above code will be in the aspx file).
According to the MarkerOptions docs, the icon should be a URL. However local files (embedded with file:///) tend to be ignored by browsers if the website is served over http - and I think that is what is happening in your case.
I would suggest to try out the following steps:
try using a relative path, e.g icon: "/icons/busballon.png"
try using a http path to your file, e.g. icon: "http://yoursite.com/icons/busballon.png"

Resources