4 replies [Last post]
mattmorgan
mattmorgan's picture
Offline
Regular
UK
Last seen: 13 years 32 weeks ago
UK
Joined: 2007-04-04
Posts: 18
Points: 0

In each div I need the links to do different tasks, on hover, active, visited and link, I have used the technique of

} #navbuttons a:link{ color:#45c4ef; text-decoration: none; } #navbuttons a:hover{ color:#999999; text-decoration:underline; } #navbuttons a:visited{ color:#45c4ef; text-decoration:none; }

However if you view the page here: http://www.scrap-art.co.uk/

Only some of the buttons in the div

amadika
amadika's picture
Offline
Enthusiast
Texas
Last seen: 10 years 40 weeks ago
Texas
Timezone: GMT-6
Joined: 2007-04-16
Posts: 206
Points: 4

Don't know if this will help

Don't know if this will help or not, but have you noticed that your active state is doing what you want your hover state to do? I find this odd, since you didn't define the active state at all... perhaps a space too...

text-decoration: underline;
not
text-decoration:underline;
Dunno... but it's worth a try...

@}->-- Amanda

mattmorgan
mattmorgan's picture
Offline
Regular
UK
Last seen: 13 years 32 weeks ago
UK
Joined: 2007-04-04
Posts: 18
Points: 0

thanks amadika for your

thanks amadika for your response,

i've been told, that spaces shouldnt make a diffence as the code is read in one big line, but i have deleted the space to make for better house keeping Smile as for the active and hover proforming the same task, i cant see why that would create the problem as two of the links in the div work, while the other two will not - for reasons best known to themselves Sad

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

You must define your pseudo

You must define your pseudo classes in a specific order:

:link

:visited

:focus

:hover

:active

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

mattmorgan
mattmorgan's picture
Offline
Regular
UK
Last seen: 13 years 32 weeks ago
UK
Joined: 2007-04-04
Posts: 18
Points: 0

congradulation hugo, you

congradulation hugo,

you are my new lord and god.

fixed.

Smile:)Smile

thanks.

M