This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > trouble Creating Multiple CSS Link Styles





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author trouble Creating Multiple CSS Link Styles
ericwilmoth

2004-08-26, 12:19 pm

I was introduced to a couple threads about this subject, but am still having
troubles. before i go further, these are the two sites i studied:
http://www.thepattysite.com/linkstyles3.cfm
--------http://www.projectseven.com/tutorials/css/pseudoclasses/index.htm

I've created a mock page to illustrate my problem:
http://www.meadhallpress.com/test.htm#

when the page loads, it looks correct [dark green], but as soon as i click the
link it reverts back to the original setting [sky-blue]. i'm actually having
more complex trouble with it than wih just this example, but i figure i'll deal
with this issue first and go from there.


Mad Dog

2004-08-26, 12:19 pm

I'm gonna guess that you haven't defined a "visited" state. And don't
forget, your link styles should be in the order: link, visited, hover,
active.

MD


ericwilmoth wrote:
> I was introduced to a couple threads about this subject, but am still
> having troubles. before i go further, these are the two sites i
> studied: http://www.thepattysite.com/linkstyles3.cfm
> --------http://www.projectseven.com/tutorials/css/pseudoclasses/index.htm
>
> I've created a mock page to illustrate my problem:
> http://www.meadhallpress.com/test.htm#
>
> when the page loads, it looks correct [dark green], but as soon as i
> click the link it reverts back to the original setting [sky-blue].
> i'm actually having more complex trouble with it than wih just this
> example, but i figure i'll deal with this issue first and go from
> there.



ericwilmoth

2004-08-26, 12:19 pm

thanks--i didn't comprehend how critical it was to have all four tag items in place--i thought i could get away with just link and hover. that seemed to take care of everything.
Mad Dog

2004-08-26, 12:19 pm

You can get away with just link and hover if you don't mind the visited to
use the default, but that's not usually the case. Of course you don't
usually need the active so that's pretty optional in my book.....

Glad it helped.

MD


ericwilmoth wrote:
> thanks--i didn't comprehend how critical it was to have all four tag
> items in place--i thought i could get away with just link and hover.
> that seemed to take care of everything.



James Shook

2004-08-26, 12:20 pm

Mad Dog wrote:
> You can get away with just link and hover if you don't mind the visited to
> use the default, but that's not usually the case. Of course you don't
> usually need the active so that's pretty optional in my book.....
>
> Glad it helped.
>
> MD


Some browsers will keep the link in the active state until another link
is clicked on. Usually this doesn't matter since you're off to a new
page once you click the link. But with pages where the link remains
visible (e.g., framesets) it's a good idea to define the active state.

--
James M. Shook
http://www.jshook.com
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews