Why are all links red in Chrome and Safari?

Just started using Google Chrome and noticed in some parts of our site, for example. all links on the page are bright red. They should be black with a dotted underline.

Is there any hint in WebKit rendering that makes all links red regardless of style?

+4
source share
7 answers

All the resources you are currently linking to are located in the places where your page is looking for them (check this by actually checking this). I also had a problem checking the application in Safari, where I tried to pull out a file that was not there, and I had a very similar output to yours (red links).

EDIT: Adding Developingchris finds the answer, as it explains so well:

k, found him.

If any of your stylesheets is missing or fixed incorrectly, it throws 404. If your page 404 has built-in styles, they get respect through the "alternative sheets" rule in webkit.

Thus, the red links to the "yellow screen of death" cause my overlap problem.

+4
source

k, found him.

If any of your stylesheets is missing or incorrectly fixed, it throws 404.
If your 404 page has built-in styles, they get respect through the "alternative sheets" rule in webkit.

So the red links on the "yellow screen of death" cause my overlap problem.

+2
source

There is an error in Chrome that obeys alternative style sheets . Do you have an alternative stylesheet that makes links red?

+1
source

This explains the problem that I encountered with my application - this is a Rails application that also contains 404 pages with red color applied to some styles. Now it makes much more sense than then. Too bad you can't accept your own answer!

+1
source

you can use jscript console like firebug to find out where the color comes from

+1
source

Have you set the :visited parameter in the stylesheet?

0
source

Run your CSS file and your HTML file using the w3c validators. I had a similar problem when testing the application in Safari. The problem was in my code.

0
source

Source: https://habr.com/ru/post/1276559/


All Articles