[Wolves] URL Link colour

mawkati at yahoo.co.uk mawkati at yahoo.co.uk
Wed Jun 15 18:37:06 UTC 2011


Hi James, I have tried that as well and I can't see where its inheriting the colour from. I'll have a look in the morning. Mo
Sent using BlackBerry® from Orange

-----Original Message-----
From: James Turner <james at turnersoft.co.uk>
Sender: wolves-bounces at mailman.lug.org.uk
Date: Wed, 15 Jun 2011 19:13:30 
To: Wolverhampton Linux User Group<wolves at mailman.lug.org.uk>
Reply-To: Wolverhampton Linux User Group <wolves at mailman.lug.org.uk>
Subject: Re: [Wolves] URL Link colour

On 15/06/11 12:26, Mo Awkati wrote:
> Hi Folk
>
> I am having a problem with a website I am working on. The problem is
> whenever
> I fire the click event on a link it turns red, if I hold the mouse
> button down, it remains
> red. It is very annoying. My client is also experiencing it an not happy
> about it.
>
> I made sure the stylesheet resets everything including a:link and still
> no joy.
>
> Is it a browser issue rather than a coding one?

The colour that a link turns while it is being clicked on with the mouse 
("activated") can be changed as follows:

a:active  { color: <whatever> }

The more common web browsers default to red if the setting is not 
otherwise changed via a stylesheet.

For more info, see:

http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes

Note in particular the paragraph which is highlighted in dark red - 
styling rules need to be defined in the correct order in order to be 
applied as intended.

Regards,

James

_______________________________________________
Wolves LUG mailing list
Homepage: http://www.wolveslug.org.uk/
Mailing list: Wolves at mailman.lug.org.uk
Mailing list home: https://mailman.lug.org.uk/mailman/listinfo/wolves


More information about the Wolves mailing list