I have all my images in an images folder. I wondered if you could put these files in the same folder and link to it. I tried to move them and change the html in the code but I could not seem to get it to work. Is this even possible?
Hiya b3mom,
You can put your images anywhere you like as long as you link to them correctly.
To put them in a folder other than your main root folder (usually the public-html folder) you would use "imagefoldernamehere/nameofimagehere.extensionhere"
To put them in a folder that is deeper than the root folder you would extend the folders to exactly where it is, an example? Images are in a "myimages" folder that is inside an "allmyphotos" and that resides in the root folder. You would type this as:
"allmyphotos/myimages/nameofimagehere.extensionhere"
If you are putting the locations into your CSS file rather than directly into your HTML file, it would make a difference where your CSS file resides. This is also true of the HTML file if you are putting the locations on that. Image locations are always relative to the location of the file you're putting the image names and locations into. Example: You're CSS file will usually reside inside a folder named CSS or css (remember that caps are a sensitive issue with website urls in most cases). So if your image is actually in an "images" folder that resides in the root you would have to add an "../" to the front of the file name to tell it, the images are above me in the root folder's image folder. Hopefully that makes sense, let me show you this way:
Root Folder - Public_html
images folder - inside Public_html
(you would type "images/imagenamehere)
images folder - inside Public_html, but image locations are added to your CSS file which you have right in your root directory
(you would type "images/imagenamehere)
images folder - inside Public_html, but image locations are added to your CSS file which you have inside a separate css which resides in the public_html directory
(you would type "../images/imagenamehere) the ../ telling it that it needs to go up one level in the tree of files.
images folder - inside Public_html, but image locations are added to an HTML file which you have inside a separate directory (say "help" or whatever other directory you may want an html file in, and that directiory resides in the public_html directory
(you would type "../images/imagenamehere) the ../ telling it that it needs to go up one level in the tree of files.
These are the most common ones that people use. basically the tree would look like this for the above examples: (ignore the dots as they are just spacers lol)
public_html (root which doesn't always show the name)
... - images
... - css
... - help (or another folder of your choice to use)
... - allmyphotos
......... - myimages (this being inside the allmyphotos folder)
Hope this helps and if there's anything that you don't understand on the above just hollar, I get wordy sometimes trying to make sure it's clear and don't always find the exact right words
Jo Ann
http://lbwebsites.com just recently completed and open
http://northbaldwinliteracycouncil.org .... Our local Literacy Council
Due to spammers the below sites are not viewable outside the US, sorry guys
http://proudayou.com - My sons website for his music business
http://rockinwithmainstreet.com - My brother's band website
You can put your images anywhere you like as long as you link to them correctly.
To put them in a folder other than your main root folder (usually the public-html folder) you would use "imagefoldernamehere/nameofimagehere.extensionhere"
To put them in a folder that is deeper than the root folder you would extend the folders to exactly where it is, an example? Images are in a "myimages" folder that is inside an "allmyphotos" and that resides in the root folder. You would type this as:
"allmyphotos/myimages/nameofimagehere.extensionhere"
If you are putting the locations into your CSS file rather than directly into your HTML file, it would make a difference where your CSS file resides. This is also true of the HTML file if you are putting the locations on that. Image locations are always relative to the location of the file you're putting the image names and locations into. Example: You're CSS file will usually reside inside a folder named CSS or css (remember that caps are a sensitive issue with website urls in most cases). So if your image is actually in an "images" folder that resides in the root you would have to add an "../" to the front of the file name to tell it, the images are above me in the root folder's image folder. Hopefully that makes sense, let me show you this way:
Root Folder - Public_html
images folder - inside Public_html
(you would type "images/imagenamehere)
images folder - inside Public_html, but image locations are added to your CSS file which you have right in your root directory
(you would type "images/imagenamehere)
images folder - inside Public_html, but image locations are added to your CSS file which you have inside a separate css which resides in the public_html directory
(you would type "../images/imagenamehere) the ../ telling it that it needs to go up one level in the tree of files.
images folder - inside Public_html, but image locations are added to an HTML file which you have inside a separate directory (say "help" or whatever other directory you may want an html file in, and that directiory resides in the public_html directory
(you would type "../images/imagenamehere) the ../ telling it that it needs to go up one level in the tree of files.
These are the most common ones that people use. basically the tree would look like this for the above examples: (ignore the dots as they are just spacers lol)
public_html (root which doesn't always show the name)
... - images
... - css
... - help (or another folder of your choice to use)
... - allmyphotos
......... - myimages (this being inside the allmyphotos folder)
Hope this helps and if there's anything that you don't understand on the above just hollar, I get wordy sometimes trying to make sure it's clear and don't always find the exact right words
Jo Ann
http://lbwebsites.com just recently completed and open

http://northbaldwinliteracycouncil.org .... Our local Literacy Council
Due to spammers the below sites are not viewable outside the US, sorry guys

http://proudayou.com - My sons website for his music business
http://rockinwithmainstreet.com - My brother's band website
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.