Forum Moderators: open
I have made sure the page is linked to the proper css file. The <a href:".." class:"...">.....</a> is also pointing towards the right class on the css sheet.
The rest of the page is displaying the css. I also checked the other pages with that same settings("class" in css) for the hyperlinks and they are fine.
Is it a known thing for files name index.htm to always display the default hyperlink colors ( blue,purple)?
Also, I put some padding-top and pading-bottom in CSS but when I run the error check in Dreamweaver, it gives me "possible errors for displays in Netscape 4.0 and 6.0". Should I try to find another way to go around this problem or should I leave it like that since most of the people no longer use these very old versions?
Should I try to find another way to go around this problem or should I leave it like that since most of the people no longer use these very old versions?
Unless you have a very special requirement (such as an internal company system requiring support for a very old browser) you can safely ignore those old Netscape versions. They are significantly below even 1% usage today.
One thing I've learned to check up on is the sequence in which style designations are coded; and something I've grappled with to get things to work right is "specificity"
Section 6.4 - The Cascade
[w3.org...]
This is the part of the code. I made the style in the head part of the html code just to make sure it over rides everything. This is my first time posting a code and I tried to follow as much as I could the "WebmasterWorld Guide to Posting your HTML and CSS"
Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<link href="example.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
a.HL2:link { color:#FFFFFF; background-color:#000000}
a.HL2:visited { color:#990000; background-color:#000000}
a.HL2:hover { color:#FF0000; background-color:#000000}
a.HL2:active { color:#cc9900; background-color:#000000}
-->
</style>
</head>
<body>
<img src="image/crabpeople1.jpg" alt="picture" width="600" height="391">
<br>
<br>My name
<br>my profession
<br>
<a class="hl2" href="home.htm">English</a>
<img src="image/whitedot.jpg" height="15" width="1" alt="whitedot">
<a class="hl2" href="acceuil.htm">Francais</a>