By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,930 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,930 IT Pros & Developers. It's quick & easy.

Where to place CSScode in an external file

P: 7
My SEO software is recommending that I place my style sheet code in an external file with a link to it to help my keyword density and bring relevant info closer to the top of the page. Where should this external folder be placed so my page can find it? thanks, Jeff
Oct 26 '11 #1
Share this Question
Share on Google+
9 Replies

Expert 5K+
P: 7,435
Your SEO software is full of BS.
Oct 26 '11 #3

P: 4
I normally create a css folder in the home directory and place the file in it.
The file should finish with .css (i.e. yourfile.css)
In the head of your HTML file (beween <head> and </head>) place a link to the CSS file.
<link rel="stylesheet" type="text/css" href="../css/yourfile.css">
(../) is top directory
(css) is the folder you created in the home directory
(yourfile.css) is the CSS file you wrote and placed in the CSS folder.
Oct 26 '11 #4

P: 7
Thanks Garry, very clear answer. Does this actually make a difference with SEO?
Oct 26 '11 #5

Expert 5K+
P: 7,435
No. CSS never has anything to do with SEO.
Oct 27 '11 #6

P: 7
I have been trying to do this for about 2 hours now. My site will not let me create a css folder in the home directory. I tried placing it in a directory where it did let me create the folder and changed the code to link to it there but my site does not look good at all. I put everything back to the original configuration and my site looks normal again but I have accomplished nothing.
Oct 27 '11 #7

Expert 100+
P: 431
@html illiterate
"but my site does not look good at all."

What do you mean by that? Is layout Ok? Can yo u describe what does and what doesn't look good and how? Maybe screen grab.
Oct 28 '11 #8

P: 7
Site layout is terrible. page is about 4-5 times longer than it should be and all my text is below what was the footer. All text is pushed to the left side also. can't do a screen grab as I put it back to the way it was with the css info back in the head.
Oct 28 '11 #9

Expert 5K+
P: 7,435
Are you using a Windows server or *nix?

Without a link, or the complete markup, anything we say will just be wild guesses about the problems with the site itself.
Oct 28 '11 #10

Post your reply

Sign in to post your reply or Sign up for a free account.