View Single Post
  #4 (permalink)  
Old 10-22-2009, 02:15 PM
ishkey's Avatar
ishkey ishkey is offline
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,771
ishkey will become famous soon enough
Default

One of my favorite sayings - Stop, Look, Analyze, Compare.
This my sound strange so let's think about it - I can not see your code. I only gave you an example
"<link href="style.css" which tells the browser to look for and link a file named "style.css" in the root directory.
I could have named it "my_very_first_stylesheet.css" or I could have named it just like you did "notes.css"

Your code tells the browser to look in the root directory for the file named "notes.css" but you said your "notes.css" file is stored in the "images directory" so the browser when looking at your code "<link rel="Stylesheet" type="text/css" href="notes.css" />" will not find it, because it is not there in the root directory.

You have to put the directory path in to let the browser know where to look.
Quote:
"<link rel="Stylesheet" type="text/css" href="images/notes.css" />"
Think of your computer it has a "C drive" the root directory and many more sub-directories.
The server has a root directory named "public_html" and many more sub-directories. This is just basic file structure.
Quote:
the css file is in the same folder as the folder for images is so would that then auto link to the images for the pages ?
If your "css file" is written to have images in the code then , Yes those images will show.

If in your "html" pages you also have images coded then they will also show, as long as when you coded them you told the browser where to find them (the directory path)

If you think about it your computer has directories and paths to files. just as in your code you have directories and paths to files.

Is this clearing things up?

I have attached a picture of my directory which comes from my server.
You can see the directory path: public_html (root dir) cleandeck (sub-dir) images (sub-dir) and then all the image files.
Attached Images
 
__________________

Consultant - Programmer - WebMaster
cleandeck - lawn mower undercoating
wilmargraphite - graphite lubricants
Reply With Quote