CSS for pages other than index?
I am using a CSS-built web page template and have the index page just right. BUT, when I copy the index page code and begin altering it for a new page in the website, the CSS does not apply to this new page. I have linked to the external style sheet properly--I've read a dozen questions regarding this too. For some reason, no matter what CSS template I use, the 2nd page I try to build doesn't show the CSS. Can anyone help me? Am I missing a unique page identifier in the CSS or HTML of this new page that differentiates it from the index page?
Public Comments
- make sure you have all the files in the same folder. check the path of the CSS linked file to make sure that the subpage is there...it has to be a path issue...
- Start manual debugging!!!! copy the CSS file to html file, in the header ofcource apply it as the style. You will come toknow wheter there is something wrong with CSS file (the UNIQUE PAGE IDENTIFIER thing or not). If thats not the case then start with html page.
- First, make sure you have all the files in the same folder. Make sure you have linked to the CSS file in each of the HTML files. Do this in between the <head></head> tags of the HTML files with the line <link rel="stylesheet" type="text/css" href="yourfilename.css" /> If that still doesn't work you can try setting the href absolutely -- for example "http://www.yourdomain.com/yourfilename.css" instead of just "filename.css." Make sure you've saved and uploaded all of your files to your server.
Powered by Yahoo! Answers