Jump to content

HTML and CSS


NORBERT

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...