Zaloguj | Zarejestruj | FAQ
Anonymous

Uniform colour for links, please?

+ Odpowiedz

Posty: 4 Strona 1 z 1


Uniform colour for links, please?

przez Hitesh2010 » N gru 05, 2010 11:14 am

To reduce eyestrain, I want all the pages I visit to have all text in black colour except links which should be blue (unvisited) and maroon (visited). The page background should be gray. To that end, I have made this user stylesheet for use with the Chrome browser.

/*1*/* { background-color: #808080 !important; }
/*2*/* { background-image: none !important; }
/*3*/* html, body { background-color: #808080 !important; }
/*4*/* { color: black !important; }
/*5*/* { text-shadow: none !important; }
/*6*/* { text-decoration: none !important; }
/*7*/* a:link { color: blue !important; }
/*8*/* a:visited { color: maroon !important; }
/*9*/* a:hover { background-color: #505050 !important; }
/*10*/* [style] { color: inherit !important; }

My problem is that on many pages, some links still appear black (perhaps because of line 4) and I don't know what to do! Line 10 has helped considerably, but there are still links that remain black and are a source of confusion since I expect (and want) links to be blue or maroon only.

Thanks for responding (even if it is to say that what I want is not currently possible)!

PS: I'm not experienced at all in CSS.
Avatar użytkownika

Hitesh2010

  • Posty: 2
  • Dołączył(a): N gru 05, 2010 10:45 am

Re: Uniform colour for links, please?

przez lacroixz » N gru 05, 2010 12:34 pm

body {background-color: #808080;color: black;}
a:link {color:blue;}
a:visited {color:maroon;}
a:hover {background-color: #505050;text-decoration:none;} /* Don't really know what you meant, a colorchange or a background */

Another option is deleting all your browser history, and have a look again!
Avatar użytkownika

lacroixz

  • Posty: 74
  • Dołączył(a): Śr paź 27, 2010 9:26 pm

Re: Uniform colour for links, please?

przez Hitesh2010 » Pn gru 06, 2010 7:47 am

Let me ask my question another way?

See this site, for example: http://www.business-standard.com/

I view it without any user stylesheet.

It has links in gray and links in blue. Visiting any link doesn't change the colour.

Is there any way, I, as a viewer of that site, can have my own user stylesheet that allows me to view all links (on that site, or any other) in just one colour, blue for unvisited and red for visited?
Avatar użytkownika

Hitesh2010

  • Posty: 2
  • Dołączył(a): N gru 05, 2010 10:45 am

Re: Uniform colour for links, please?

przez lacroixz » Pn gru 06, 2010 2:09 pm

You can't edit any stylesheet on any other site than your own.
Avatar użytkownika

lacroixz

  • Posty: 74
  • Dołączył(a): Śr paź 27, 2010 9:26 pm


+ Odpowiedz

Strona 1 z 1