NORBERT Posted August 27, 2011 Report Posted August 27, 2011 Could You please help solve this... I'm trying to apply this p { width: 200px; color: blue; } h3 { border-top:1px solid #8B6D41; } from root.css file to index.html <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title> KEC </title> <META NAME="description" content="life "> <META NAME="keywords" content=" psychologycal"> <meta http-equiv="Content-Type" content= "text/html; charset=iso-8859-1"> <link href="ROOT.CSS" rel="stylesheet" type="text/css"> <------ by using this <body> <h1> Most important headline</h1> <p> info info info </p> <h2> FIRST INFO </h2> <p> All the informations about the trips and projects </p> <h2> SECOND INFO </h2> <p> Info about the company hhhhhhhhhhhhhhhhhhhhhghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo </p> </body> </html> And It's not working. Files are on the same level. Basically I cannot apply any changes to My index.html file using root.css. Could You please explain Why? Thanks for help Regards Quote
falkencreative Posted August 27, 2011 Report Posted August 27, 2011 Are the file names the same? Note in your code you have "ROOT.CSS" and yet you say your file is named "root.css". Capitalization matters, so that is the first thing I would check. Quote
NORBERT Posted August 27, 2011 Author Report Posted August 27, 2011 Thanks but It's not working. :-( I've checked this before. Quote
NORBERT Posted August 27, 2011 Author Report Posted August 27, 2011 ok. I've fixed it. I've checked the root.css properties and the file name is actually root.css.txt, I changed name in my htlm file- (index.htlm) and it's working now. so how should I saved My CSS files too avoid this problem in the future? Thank You Quote
Wickham Posted August 27, 2011 Report Posted August 27, 2011 I can see three things that might be causing the problem: Edit your doctype to this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> See http://www.w3.org/QA/2002/04/valid-dtd-list.html Add </head> closing tag just before the <body> tag. Edit your spelling to all lower case for root.css in the html markup and also for the actual filename (it's often better to keep filenames in lower case as it avoids confusion). Quote
Andrea Posted August 27, 2011 Report Posted August 27, 2011 There's also this <link href="ROOT.CSS" rel="stylesheet" type="text/css"> <------ by using this that could be causing problems. That ueberlong line of letters likely goofs things up as well. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.