Forum Moderators: open

Message Too Old, No Replies

Hyperlinks related display color always on default for my index.htm

and other small things dreamweaver tells me is wrong

         

SimonRain

8:09 am on Aug 19, 2007 (gmt 0)

10+ Year Member



I have noticed the color for the hyperlinks in dreamweaver are like I coded them in the CSS sheet, but as soon as I load them on my server, they are displayed as default settings.

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?

londrum

10:39 am on Aug 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



in your example you have written
<a href:".." class:"...">

but it should be like this
<a href=".." class="...">

that has probably got something to do with it

tedster

8:17 pm on Aug 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.

SimonRain

3:55 am on Aug 20, 2007 (gmt 0)

10+ Year Member



londrum - when I wrote the post, I didnt copy/paste the codes and made a mistake with the : and = but on the webpage, it is what you wrote =)

tedster - Thanks, I sort of imagined it was no longer relevant because the webpage is only a portfolio and nothing too fancy

So anyone have this problem?

Marcia

4:17 am on Aug 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When I have a problem with CSS I try to isolate which style is not "taking" or working, and put the particular style for the element in question in the head section (modified) to test on a page - sequentially in the code after the link to the stylesheet so it'll over-ride what isn't working in the linked stylesheet. That way, I've usually been able to isolate and fix the problems I've run into.

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

SimonRain

12:54 pm on Aug 20, 2007 (gmt 0)

10+ Year Member



Marcia - I just tried your idea and unfortunetly it still doesnt show it right. Good way of finding specific errors tho thanks =)

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>

pageoneresults

1:27 pm on Aug 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Case Sensitive?

You are using UPPERCASE for the styles and then lower case for the class?

pageoneresults

3:59 pm on Aug 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld SimonRain!

SimonRain

12:40 pm on Aug 21, 2007 (gmt 0)

10+ Year Member



Pageoneresults - Hi, Thanks for the warm welcome =)

and thanks a lot. It was the case sensitive. I didnt think HTML/CSS was case sensitive.

It's those small things we cant find out when we are learning by ourselves that makes this kind of community so great =)