i created an html page 'untitled1.html' and i wanted to style it with css, so i created a css page 'untitled2.css' , i added my syntax and tried to link it to my html page but it didn't work.. please help.
here's my code
body {
color:#EEEEEE;
background-color:#1E1E1E;
}
a { color:#DDDDDD; }
a:visited { color:#FFA500; }
a:hover { color:#FFA500; }
a:active { color:#DA9100; }
i'm a newbie, pls help.
CSS is not working
Hi Dubbs.
If you place this in the head area of your page it should work.
If you place this in the head area of your page it should work.

<style type="text/css">
<!--
body {
color:#EEEEEE;
background-color:#1E1E1E;
}
a { color:#DDDDDD; }
a:visited { color:#FFA500; }
a:hover { color:#FFA500; }
a:active { color:#DA9100; }
-->
</style>
<!--
body {
color:#EEEEEE;
background-color:#1E1E1E;
}
a { color:#DDDDDD; }
a:visited { color:#FFA500; }
a:hover { color:#FFA500; }
a:active { color:#DA9100; }
-->
</style>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Or, if you want to have the styles in a separate file, make sure that file does NOT start with
<style type="text/css">
And does NOT end with </style>.
A separate file has to start directly with the actual style rules, like
body { color: #eeeeee;} etc.
And when you link the stylesheet to your page, type:
<link rel="stylesheet" href="untitled2.css" type="text/css" media="screen">
If the css file is in a subfolder, then it's ...href=" subfolder/untitled2.css"...
If nothing helps, then please post a link and let us see what is going on.
<style type="text/css">
And does NOT end with </style>.
A separate file has to start directly with the actual style rules, like
body { color: #eeeeee;} etc.
And when you link the stylesheet to your page, type:
<link rel="stylesheet" href="untitled2.css" type="text/css" media="screen">
If the css file is in a subfolder, then it's ...href=" subfolder/untitled2.css"...
If nothing helps, then please post a link and let us see what is going on.
Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.