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
Where to place CSScode in an external file
Collapse
X
-
Tags: None
-
-
-
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.
i.e.
<head>
<link rel="stylesheet " type="text/css" href="../css/yourfile.css">
</head>
(../) 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.Comment
-
-
-
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.Comment
-
Comment
-
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.Comment
-
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.Comment
Comment