Go Back   Free website templates > Web Template Help > HTML - XHTML - CSS
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to download all the free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-22-2009, 01:18 PM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default Upload to site question

Ok have never used a template before, I have a css file and a index.html file, plus my other pages that have edited the index file from and saved with there own name.

I know that I need to upload my folder with all this in to my site, my question is this.

Can the pages go directly in the public.html folder, and the folder with images and css stay in the folder and go in the public.html folder on my site, If that makes sense

If so how would I link the pages to the css file and images etc ?

this is where will probably get completely lost.

As normally use the inbuilt site editor to make pages.

Thanks

Angie
Reply With Quote
  #2 (permalink)  
Old 10-22-2009, 02:16 PM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
ishkey will become famous soon enough
Default

All of your files should be uploaded to your public.html folder.

Quote:
If so how would I link the pages to the css file and images etc ?
That's where your code in your html files comes in to play.
Example:
Code:
<link href="style.css" rel="stylesheet" type="text/css" />
This line of code should be in your "head" section of your "html" file and it tells the browser to look in the "root directory" for a file named "style.css", Read the contents and use it for the layout of my page.


You could have written it as such:
Quote:
<link href="css/style.css" rel="stylesheet" type="text/css" />
Which tells the browser to look in the root directory, then look for a directory named "css" find the file named style.css and use it.

For your pics a line of code in the "body" section of your "html" file would start out like this
Code:
<img src="images/blank.png"
telling your browser to look in the "images directory" for the file named blank.png

Since you already have all files written and ready for upload, I'm sure you have looked at them in your browser so they are working. Go back and look at the code listed above, open your files in your editor, find those items so you will understand it.
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
  #3 (permalink)  
Old 10-22-2009, 02:24 PM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default

Ok am bit confuzzled as I say

looking at the head section of the html mine is different to what you have

this is yours

<link href="style.css" rel="stylesheet" type="text/css" />

this is what is in my head section

<link rel="Stylesheet" type="text/css" href="notes.css" />

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 ?

Would the highlighted part of the link below be where I put the link to the css or would i just link to the folder somehow ?

<link rel="Stylesheet" type="text/css" href="notes.css" />

Thanks

Angie
Reply With Quote
  #4 (permalink)  
Old 10-22-2009, 03:15 PM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
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
 
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
  #5 (permalink)  
Old 10-22-2009, 04:03 PM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default

Thanks ishkey,

I think that understand what your saying.
So will upload shortly, after my host has installed my forum, it wouldnt install for me for some reason.

Also will need to resave the pages that are onsite aswell before uploading as they are named the same as the new pages am going to be using.

Thanks for all the help is really appreciated.

and will shout if get stuck or let you know its worked ok for me


Angie
Reply With Quote
  #6 (permalink)  
Old 10-22-2009, 04:12 PM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
ishkey will become famous soon enough
Default

good idea to save your orig files somewhere safe just incase.
Quote:
So will upload shortly, after my host has installed my forum, it wouldnt install for me for some reason.
If I am reading this right - most host's just rent you space and maybe have cpanel installed and some tech support for questions.
If you mean they install it - that would mean a high priced host.
If you mean cpanel - them maybe there is a problem with there control panel or your database is not connected properly.

So give us a link to look at.
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
  #7 (permalink)  
Old 10-22-2009, 05:03 PM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default

My host is great, servers work fast not had any downtime at all apart from when he does maintenance which he hasnt needed to do often, and you get plenty of warning for that,

he refuses full stop to over load the servers.

He also installs things for you

I'm not being charged at all for the installation, and he is geared towards hosting forums.

He also installed my coppermine gallery for me, it is upto me to configure the look etc myself.

Also it isnt expensive for me either, the hosting package is not expensive is what I mean and support is great.

The only thing is he is in the USA and I'm in the UK, so if I need support which is extremely rare I just wait till after 2pm my time and normally have a reply within 20 minuites, also its the owner of the company that is doing all this, the support, install everything, he is very customer orientated, which is great.

I contacted a few hosts before choosing and one never replied, one took hours to reply these were questions was asking about there hosting etc.
My host replied within minuites and does for every question have asked.


Ok back to pages and uploading template

I did it first time so am really really pleased with how the site looks now.
Even though I made the graphics from scratch on my previous pages was never happy with the layout and look and feel etc, but am really happy with them now.
Still a bit of tweaking to do, couple of graphics to add etc and other bits then its sorted.

So a bit thank you for your help and also the offer of help with the forum etc is appreciated.

Angie
Reply With Quote
  #8 (permalink)  
Old 10-22-2009, 05:08 PM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
ishkey will become famous soon enough
Default

so with all that said - who is your host and what is your website so we can look at it.
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
  #9 (permalink)  
Old 10-22-2009, 05:08 PM
grodt718's Avatar
Senior Member
 
Join Date: Sep 2009
Location: New York
Posts: 100
grodt718 is on a distinguished road
Question Hi,All

SO, what's your host name or site address,can we know?
__________________
Reply With Quote
  #10 (permalink)  
Old 10-22-2009, 05:24 PM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default

My host is gc solutions

heres a link

G.C. Solutions


I'm on the kickstarter which at the moment am paying for monthly, will pay yearly after my first 12 months so will save more that way, but he isnt expensive and cheaper than my last host by nearly £50 over a year, specially for what you get with him aswell.

Ok here is a link to my site.

Ok my site still needs tweeking etc so tutorials arent linked in the tutorial pages yet etc, probably needs code editing to pass validating and also meta tags need doing aswell yet. Plus getting pages to open in new windows well certain pages like the gallery, its a case of right click and open in new window/tab with that at the moment or use the back arrow on the browser.

TUTZ 2 TAGZ


Angie
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:03 AM.



mouseover mouseover mouseover