vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   CSS Selectors & links... (https://vborg.vbsupport.ru/showthread.php?t=198973)

Warlord 12-16-2008 01:15 AM

CSS Selectors & links...
 
I want to change the link color on a webpage but only for links in the CSS selector .tcat

I've tried several variations, but this is the closest I think I've gotten:

Code:

a.tcat:link {text-decoration: underline; color:white;}
a.tcat:visited {text-decoration: underline; color:white;}
a.tcat:active {text-decoration: underline; color:white;}
a.tcat:hover {text-decoration: underline; color: red;}

I actually had it working before, but somehow I screwed it up and now I can't figure out how I did it. Can someone throw me a bone please? :D

--------------- Added [DATE]1229398714[/DATE] at [TIME]1229398714[/TIME] ---------------

From what I'm reading, I have to manually add a new class to each link anchor tag that I want to change the link color for???

Can't I just use the class inside the table tag that surrounds these links somehow? I'm positive I did it before. It's driving me nuts. :/

--------------- Added [DATE]1229399627[/DATE] at [TIME]1229399627[/TIME] ---------------

Ha! Got it! I knew I had done it before. :D

Here's the code for anyone who's interested.

Code:

.tcat a:link {text-decoration: underline; color:white;}
.tcat a:visited {text-decoration: underline; color:white;}
.tcat a:active {text-decoration: underline; color:white;}
.tcat a:hover {text-decoration: underline; color: red;}



All times are GMT. The time now is 11:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01721 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete