Powered by:
FutureQuest Hosting


"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Web Hosting
Shared       
Reseller     
VPS             
Dedicated 
Price:   $(US)
Space:     (MB)
Transfer:(GB)
Platform:


Advertise
Advertising Opportunities
Rate Card

Sponsor
Go Back   Webmaster Forums > Code Forum > CSS Forum


Reply
 
Thread Tools Rate this Webmaster Discussion
  #1  
Old 11-13-2005, 07:24 PM
tjanson tjanson is offline
Junior Member
 
Join Date: Jul 2004
Webmaster Discussions: 14
Rep Power: 33
tjanson is on a distinguished road
a:active not working in FIrefox or Netscape

Hi all. I would be much appreciative of your help on this. I have spent far too long trying to figure out why my a:active css is not working on the thumbnails below the large image when you click on one. Works fine in IE, Thanks so much for your input.

Offending CSS:

a.thumbnailuw:visited {
display : block;
border : 2px solid #000000;
}

a.thumbnailuw:hover {
display : block;
border : 2px solid #65ADE7;
}

a.thumbnailuw:active {
display : block;
border : 2px solid #65ADE7;
}

Site I'm applying it to:
http://www.johntorrente.com/index.html


Reply With Quote
  #2  
Old 11-13-2005, 08:20 PM
ALL's Avatar
ALL ALL is offline
Super Dooper Nerd
 
Join Date: Feb 2005
Location: localhost
Webmaster Discussions: 381
Rep Power: 40
ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute
Send a message via ICQ to ALL Send a message via AIM to ALL Send a message via MSN to ALL Send a message via Yahoo to ALL
Re: a:active not working in FIrefox or Netscape

what browsers is this sample not working with?
__________________
Did I help you?
You can repay me by supporting one of my projects (no money required):
Shopping Cart, Contractor helper, Another Web Forum
If somone helps you, please rate their post, by clicking the to rate their post
Reply With Quote
  #3  
Old 11-13-2005, 08:52 PM
tjanson tjanson is offline
Junior Member
 
Join Date: Jul 2004
Webmaster Discussions: 14
Rep Power: 33
tjanson is on a distinguished road
Re: a:active not working in FIrefox or Netscape

Firefox 1.0.4 and Netscape 8.0.4 for Windows
Reply With Quote
  #4  
Old 11-14-2005, 11:00 AM
ALL's Avatar
ALL ALL is offline
Super Dooper Nerd
 
Join Date: Feb 2005
Location: localhost
Webmaster Discussions: 381
Rep Power: 40
ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute ALL has a reputation beyond repute
Send a message via ICQ to ALL Send a message via AIM to ALL Send a message via MSN to ALL Send a message via Yahoo to ALL
Re: a:active not working in FIrefox or Netscape

i dont have either one of those in may computer... if i was using my computer i could have done it, but i dont have my computer... i am sorry

-ALL

i am sure somone else can help you!
__________________
Did I help you?
You can repay me by supporting one of my projects (no money required):
Shopping Cart, Contractor helper, Another Web Forum
If somone helps you, please rate their post, by clicking the to rate their post
Reply With Quote
  #5  
Old 03-16-2009, 06:13 AM
Chaoseeker Chaoseeker is offline
Junior Member
 
Join Date: Mar 2009
Webmaster Discussions: 1
Rep Power: 5
Chaoseeker is on a distinguished road
Re: a:active not working in FIrefox or Netscape

any value put on a:active will only be seen as you are clicking on the link.
to achieve your goal you'll need to do something like this:

<ul>
<li>blue</li>
<li id="active">black</li>
<li>green</li>
</ul>

By giving your element a unique name, you can style it using CSS:
#active {
color: blue;
}
Reply With Quote
  #6  
Old 03-16-2009, 11:53 AM
markei markei is offline
Junior Member
 
Join Date: Mar 2009
Location: Westminster, MD
Webmaster Discussions: 14
Rep Power: 6
markei has a spectacular aura about markei has a spectacular aura about
Re: a:active not working in FIrefox or Netscape

Quote:
Originally Posted by tjanson View Post
Hi all. I would be much appreciative of your help on this. I have spent far too long trying to figure out why my a:active css is not working on the thumbnails below the large image when you click on one. Works fine in IE, Thanks so much for your input.

Offending CSS:

a.thumbnailuw:visited {
display : block;
border : 2px solid #000000;
}

a.thumbnailuw:hover {
display : block;
border : 2px solid #65ADE7;
}

a.thumbnailuw:active {
display : block;
border : 2px solid #65ADE7;
}

Site I'm applying it to:
http://www.johntorrente.com/index.html
I see a few things here.

First is that your active color is the same as your hover color, so you would not see any color change.

Second is the CSS coding itself. The way you have it set up will not work correctly even on my IE7 browser and it makes sense to me why it won't, due to your implementation of the css class.

You have used your class in the code to effect only the a tag that has a class of thumbnailuw, but in your code you use the thumbnailuw class for the td tag.

a.thumbnailuw:active means use thumbnailuw as a class of a and only on the :active part. (ie; <a class="thumbnailuw">)

I think what you want is this:
.thumbnailuw a:active which means to affect all the a:active areas within any tag with the thumbnailuw class.

As a better and cleaner use of CSS, you could use the td itself to select what you want and eliminate the need for the class altogether, provided the only td tags you use on your page are for that effect(as on your linked page), you can also eliminate the need to even put the class="thumbnailuw" code on every td and clean up your code considerably.

so your new code would look like this:
Code:
td a:visited {
display : block;
border : 2px solid #000000;
}

td a:hover {
display : block;
border : 2px solid #65ADE7;
} 

td a:active {
display : block;
border : 2px solid #65ADE7; /* change this to a contrasting color if you want */
}
OR

If you use more than one table or set of td tags, add an id to the table itself.
Then only all the enclosed tds in that table would be affected.
Code:
#thumbnailuw td a:visited {
display : block;
border : 2px solid #000000;
}

#thumbnailuw td a:hover {
display : block;
border : 2px solid #65ADE7;
} 

#thumbnailuw td a:active {
display : block;
border : 2px solid #65ADE7; /* change this to a contrasting color if you want */
}
There's a whole arguement about using CSS and DIVs instead of tables for layout, but I won't go into that here, but the same thing would apply to a div within a div, just replace td with div.

Hope it helps!
__________________
Keep In Tune!
markei

Last edited by markei; 03-16-2009 at 12:11 PM.
Reply With Quote
Reply
Sponsor

Bookmarks

Tags
aactive , firefox , netscape , working

Thread Tools
Rate This Thread
Rate This Thread:

 

Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
A:visited img not working in FIrefox or Netscape tjanson CSS Forum 1 03-16-2009 12:21 PM
print "Location... in firefox not working CGI_Newbie CGI Perl Forum 1 11-03-2007 12:01 PM
CSS working differently in Netscape and IE brsdja CSS Forum 10 01-06-2004 05:04 PM
Active Links sshadow HTML Forum 11 12-13-2002 02:12 PM


All times are GMT -5. The time now is 10:59 PM.

Copyright © 1999 - 2009 Advanced HTML For Beginners and AHFB2000. All rights reserved.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.