Jump to content

I can't make images in sub-folder work


Recommended Posts

Hello, My name is Matías and I'm from Argentina.

I have this problem: everytime I try to make an HTML/CSS design and I use the structure: "<img src="/images/1.jpg>" (for example) the picture doesn't appear, even though the directory is correctly named. The folder "images" is inside the folder where the main page I'm working on is. I end up having to upload the pictures to an online server in order to work correctly everytime. It's quite annoying.

Does anyone else have this problem? 

Link to comment
Share on other sites

It means that the path is wrong.

I don't know how your filesystem is structured, so I can only guess what the path really should look like.

Maybe this will work:

<img src="images/1.jpg">

Starting a path with a "/" makes the path be relative to the root of the website, not the current folder.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...