I'm uss CSS to change the default link (<a href=""></a>) colors on a
web page. Everything looks fine when I upload the pages to a web host,
and when I view them directly on my hard drive with IE6.

The problem starts when I view them locally through IIS
(http://localhost/...).
The page displays all the rest of the CSS info fine, except anything
to do with anchors. The a:hover works fine, but the page doesn't show
any changes made to any of the other a: properties
(link/visited/active).

The code is below. Is it a quirk in IIS5.1? Am I coding something
wrong? I should mention I'm a total newbie; I've been teaching myself
CSS and HTML out of a library book over the last week.


2c.html:

<html>

<head>
<title>playing with css</title>
<link rel="stylesheet" href="test2.css" type="text/css">
</head>

<body>

<table border="1" width="100%">
<tr>
<td width="33%"> <a class="topLinks" href=""> yyyy </a> </td>
<td width="33%"> <a class="topLinks" href=""> xxxx </a> </td>
<td width="34%"> <a class="topLinks" href=""> xxxx </a> </td>
</tr>

<tr>
<td width="33%"> <a class="topLinks" href=""> xxxxx </a> </td>
<td width="33%"> <a class="topLinks" href=""> xxxxx </a> </td>
<td width="34%"> <a class="topLinks" href=""> xxxxx </a> </td>
</tr>

<tr>
<td> <a class="wahoo" href=""> test test </a> </td>
</tr>
</table>

<p class="whatever">

2c 2c 2c

</p>

<a class="wahoo" href=""> test test </a>


</body>
</html>


test2.css:

a.topLinks:link {color: black; background: blue; font-size: 15pt;
text-decoration: none;}
a.topLinks:visited {color: red; font-size: 15pt; text-decoration:
none;}
a.topLinks:hover {color: blue; background: black; font-size: 15pt;
text-decoration: none;}
a.topLinks:active {color: #008000; font-size: 15pt; text-decoration:
none;}

a.wahoo:link {color: red; background-color: black;}

p.whatever {color: red;}

Re: Strange IIS5.1 problem with CSS and anchors by jeff

jeff
Mon Feb 21 07:26:45 CST 2005

On 21 Feb 2005 01:37:43 -0800, mhj@w-link.net (mark johnson) wrote:

>I'm uss CSS to change the default link (<a href=""></a>) colors on a
>web page. Everything looks fine when I upload the pages to a web host,
>and when I view them directly on my hard drive with IE6.
>
>The problem starts when I view them locally through IIS
>(http://localhost/...).
>The page displays all the rest of the CSS info fine, except anything
>to do with anchors. The a:hover works fine, but the page doesn't show
>any changes made to any of the other a: properties
>(link/visited/active).
>
>The code is below. Is it a quirk in IIS5.1? Am I coding something
>wrong? I should mention I'm a total newbie; I've been teaching myself
>CSS and HTML out of a library book over the last week.

It's not IIS, you might ask in a CSS or HTML group for help.

Jeff


>2c.html:
>
><html>
>
><head>
><title>playing with css</title>
><link rel="stylesheet" href="test2.css" type="text/css">
></head>
>
><body>
>
><table border="1" width="100%">
> <tr>
> <td width="33%"> <a class="topLinks" href=""> yyyy </a> </td>
> <td width="33%"> <a class="topLinks" href=""> xxxx </a> </td>
> <td width="34%"> <a class="topLinks" href=""> xxxx </a> </td>
> </tr>
>
> <tr>
> <td width="33%"> <a class="topLinks" href=""> xxxxx </a> </td>
> <td width="33%"> <a class="topLinks" href=""> xxxxx </a> </td>
> <td width="34%"> <a class="topLinks" href=""> xxxxx </a> </td>
> </tr>
>
> <tr>
> <td> <a class="wahoo" href=""> test test </a> </td>
> </tr>
></table>
>
><p class="whatever">
>
>2c 2c 2c
>
></p>
>
><a class="wahoo" href=""> test test </a>
>
>
></body>
></html>
>
>
>test2.css:
>
>a.topLinks:link {color: black; background: blue; font-size: 15pt;
>text-decoration: none;}
>a.topLinks:visited {color: red; font-size: 15pt; text-decoration:
>none;}
>a.topLinks:hover {color: blue; background: black; font-size: 15pt;
>text-decoration: none;}
>a.topLinks:active {color: #008000; font-size: 15pt; text-decoration:
>none;}
>
>a.wahoo:link {color: red; background-color: black;}
>
>p.whatever {color: red;}


Re: Strange IIS5.1 problem with CSS and anchors by mhj

mhj
Mon Feb 21 18:48:57 CST 2005

jeff.nospam@zina.com (Jeff Cochran) wrote in message news:<421ae178.556803931@msnews.microsoft.com>...
> It's not IIS, you might ask in a CSS or HTML group for help.
>
> Jeff


The problem only occurs when I view the page on my own machine's
IIS5.1 server. When the page is viewed using IE6 on either the website
or on the hard drive, everything looks just fine.

Logically, if 2 out 3 ways of viewing the page look fine, and the 3rd
way is IIS, it seems like it would be issue with how IIS is rendering
the page. That's why I posted this to an IIS group.


Mark J.

Re: Strange IIS5.1 problem with CSS and anchors by Kristofer

Kristofer
Tue Feb 22 10:24:35 CST 2005

Hi,

Please make sure that your browser is not using a cached version of the
CSS file.

It is quite easy for IIS to "do this". IIS only needs to serve the files,
and the browser will then use the CSS file and html-file to show the page
in your browser. So if you can verify that something of the CSS file is
used, then the CSS file is downloaded to the client, and IIS has done its
job.

Can you also look in the IIS log file, and tell us what status code of the
requests for the CSS file(s) and html file(s).

--
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com


mark johnson wrote:

> I'm uss CSS to change the default link (<a href=""></a>) colors on a
> web page. Everything looks fine when I upload the pages to a web host,
> and when I view them directly on my hard drive with IE6.
>
> The problem starts when I view them locally through IIS
> (http://localhost/...).
> The page displays all the rest of the CSS info fine, except anything
> to do with anchors. The a:hover works fine, but the page doesn't show
> any changes made to any of the other a: properties
> (link/visited/active).
>
> The code is below. Is it a quirk in IIS5.1? Am I coding something
> wrong? I should mention I'm a total newbie; I've been teaching myself
> CSS and HTML out of a library book over the last week.
>
>
> 2c.html:
>
> <html>
>
> <head>
> <title>playing with css</title>
> <link rel="stylesheet" href="test2.css" type="text/css">
> </head>
>
> <body>
>
> <table border="1" width="100%">
> <tr>
> <td width="33%"> <a class="topLinks" href=""> yyyy </a> </td>
> <td width="33%"> <a class="topLinks" href=""> xxxx </a> </td>
> <td width="34%"> <a class="topLinks" href=""> xxxx </a> </td>
> </tr>
>
> <tr>
> <td width="33%"> <a class="topLinks" href=""> xxxxx </a> </td>
> <td width="33%"> <a class="topLinks" href=""> xxxxx </a> </td>
> <td width="34%"> <a class="topLinks" href=""> xxxxx </a> </td>
> </tr>
>
> <tr>
> <td> <a class="wahoo" href=""> test test </a> </td>
> </tr>
> </table>
>
> <p class="whatever">
>
> 2c 2c 2c
>
> </p>
>
> <a class="wahoo" href=""> test test </a>
>
>
> </body>
> </html>
>
>
> test2.css:
>
> a.topLinks:link {color: black; background: blue; font-size: 15pt;
> text-decoration: none;}
> a.topLinks:visited {color: red; font-size: 15pt; text-decoration:
> none;}
> a.topLinks:hover {color: blue; background: black; font-size: 15pt;
> text-decoration: none;}
> a.topLinks:active {color: #008000; font-size: 15pt; text-decoration:
> none;}
>
> a.wahoo:link {color: red; background-color: black;}
>
> p.whatever {color: red;}

Re: Strange IIS5.1 problem with CSS and anchors by mhj

mhj
Wed Feb 23 12:54:40 CST 2005

Well, everything seems to be working fine now. I haven't the foggiest
notion why it works now and not before, the code hasn't changed, but
now all elements on the page update, including the anchors.

Thanks for everyone's feedback.


Mark J.



"Kristofer Gafvert" <kgafvert@NEWSilopia.com> wrote in message news:<xn0dyt9g42m8as800a@news.microsoft.com>...
> Hi,
>
> Please make sure that your browser is not using a cached version of the
> CSS file.
>
> It is quite easy for IIS to "do this". IIS only needs to serve the files,
> and the browser will then use the CSS file and html-file to show the page
> in your browser. So if you can verify that something of the CSS file is
> used, then the CSS file is downloaded to the client, and IIS has done its
> job.
>
> Can you also look in the IIS log file, and tell us what status code of the
> requests for the CSS file(s) and html file(s).
>
> --
> Regards,
> Kristofer Gafvert
> www.gafvert.info - My Articles and help
> www.ilopia.com
>