![]() |
| HTML | PHP Scripts | Webmaster Tools | Webmaster Forums | Web Hosting | Domain Names | Webmaster Books |
|
|
#1 |
|
New Member
Join Date: Jul 2004
Webmaster Discussions: 14
Rep Power: 38 ![]() |
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 |
|
|
|
|
|
#2 |
|
Super Dooper Nerd
|
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
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Jul 2004
Webmaster Discussions: 14
Rep Power: 38 ![]() |
Re: a:active not working in FIrefox or Netscape
Firefox 1.0.4 and Netscape 8.0.4 for Windows
|
|
|
|
|
|
#4 |
|
Super Dooper Nerd
|
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
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2009
Webmaster Discussions: 1
Rep Power: 9 ![]() |
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; } |
|
|
|
|
|
#6 | |
|
New Member
Join Date: Mar 2009
Location: Westminster, MD
Webmaster Discussions: 19
Rep Power: 10 ![]() ![]() |
Re: a:active not working in FIrefox or Netscape
Quote:
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 */
}
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 */
}
Hope it helps! Last edited by markei; 03-16-2009 at 11:11 AM. |
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| aactive, firefox, netscape, working |
| Thread Tools | |
| 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 11:21 AM |
| print "Location... in firefox not working | CGI_Newbie | CGI Perl Forum | 1 | 11-03-2007 11:01 AM |
| 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 |