CSS - a:active

This is a discussion on "CSS - a:active" within the Web Page Design section. This forum, and the thread "CSS - a:active are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 31st, 2006, 19:02
Junior Member
Join Date: Oct 2006
Location: ny
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
CSS - a:active

My html file has two frames;
The left one holds a list of links to open pages in the right one.

Que. 1)
My CSS specs for the left page for a:active
( color: aqua; background-color: navy; )
do not work when the html file first opens.
Subsequent clicks do change the anchor's appearance.
How do I get the anchor that's first active by default (it happens to be the 1st link)
to assume the correct appearance when the html file displays for the first time?

Que. 2)
My a:active works only in Explorer, but not in Firefox. Would appreciate your help to resolve this problem as well.
Reply With Quote

  #2 (permalink)  
Old Oct 31st, 2006, 21:07
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: CSS - a:active

I'll answer your questions in reverse order.

a:focus is the Firefox and some other browsers equivalent of a:active in IE so you need to use both to cover your bases.

I sounds that you are under the impression that this css style is applied automatically to the link for the page you are on. This is not the case.

They come into their own when users use the keyboard to navigate rather than the mouse. As you tab onto or cursor onto a link, these style are applied as that link is now active or has focus.
Reply With Quote
  #3 (permalink)  
Old Nov 1st, 2006, 17:08
Junior Member
Join Date: Oct 2006
Location: ny
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Re: CSS - a:active

Thank you ukgeoff.
Can a Javascript maneuver get the first link "clicked" upon page entry?
Reply With Quote
  #4 (permalink)  
Old Nov 2nd, 2006, 08:50
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS - a:active

Yes, JavaScript will handle this one better than CSS. Look into the function onMouseDown.
Reply With Quote
Reply

Tags
active anchor, firefox issue

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
active active X R8515198 Flash & Multimedia Forum 11 May 18th, 2007 02:50
How do I get people active and keep them active? TheSealPortalTeam Webforumz Cafe 4 May 9th, 2007 10:17
IE Active X trigger? Lchad Web Page Design 0 Feb 9th, 2007 11:52
Active State Lchad Web Page Design 10 Jan 27th, 2007 01:29
CSS Active Links johnnybravo Web Page Design 5 Aug 14th, 2006 12:48


All times are GMT. The time now is 03:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43