navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

a:hover + a:visited

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> a:hover + a:visited
Page: [1]
 
stall

 

Posts: 17
Joined: 2/14/2007
Status: offline

 
a:hover + a:visited - 3/11/2007 20:51:47   
Hi. I'm just wondering if anyone knows how to make it so that all links, when hovered, will do the code in the a:hover block.

Seems like I'm asking a retarded question at first glance, but, lets take a look at what is actually retarded. . .

a:hover {
color: blue;
}

when i click a few links and come back to the page, i'll see purple underlined links replacing the links i just clicked.

if i add

a:visted {
color: original_color;
}

Then only some of the links (the ones i haven't visited) will hover correctly.


Does someone know a way to get around this and still be able to hover all the links???

Thanks.
rubyaim

 

Posts: 757
Joined: 6/22/2005
Status: offline

 
RE: a:hover + a:visited - 3/11/2007 21:21:38   
Hi, the a:hover needs to come after the a:link and a:visited, eg:

a:link {
color: red;
text-decoration: none;
}

a:visited {
color: black;
text-decoration: none;
}

a:hover {
color:blue;
text-decoration:underline;
}

This might be useful CSS Pseudo-classes

This is quite good as well - FAQ - Link (<a>) States - especially the bit about remembering the order :)



_____________________________

Sally

(in reply to stall)
jaybee

 

Posts: 13959
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: a:hover + a:visited - 3/12/2007 4:22:55   
quote:

Or you could use: LoVe HAte to help remember the order.
There's one big problem with that. There's no F in it for Focus. Perhaps it should be LoVF HAte.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to rubyaim)
Tailslide

 

Posts: 5915
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: a:hover + a:visited - 3/12/2007 5:03:40   
It's -

L ord
V ader
F ormer
H andle
A nnakin

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to jaybee)
jaybee

 

Posts: 13959
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: a:hover + a:visited - 3/12/2007 6:08:18   
Depends on your situation. Three doors down it would be

Latest Visit From Housing Association. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> a:hover + a:visited
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts