![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| For some reason, I just can't change the font color for hover. It allows me to change the background color, no problem. But, if the link is visited, it will not change the font color, if the link is unvisited, then it will change the font color on hover. Here is my CSS #content a:link { color: #CACBCA; font-weight: bold; } #content a:hover { background-color: #ffffff; color: #048004; font-weight: bold; } #content a:visited { color: #CACBCA; font-weight: bold; } any ideas? | |||
| Advertisements |
| | #2 | ||
| Kathleen Coyne wrote: > For some reason, I just can't change the font color for hover. It > allows me to change the background color, no problem. But, if the > link is visited, it will not change the font color, if the link is > unvisited, then it will change the font color on hover. It's the cascade that's doing it - define them in the order link visited hover active Currently, your visited definition comes after the hover so a visited link that gets hovered has to decide on whether it will display as visited or hovered - the latter definition takes precedence so you get a visited appearance. -- PeterMcC If you feel that any of the above is incorrect, inappropriate or offensive in any way, please ignore it and accept my apologies. | |||
| | #3 | ||
| kathleencoyne781@aol.com (Kathleen Coyne) wrote: >For some reason, I just can't change the font color for hover. It >allows me to change the background color, no problem. But, if the >link is visited, it will not change the font color, if the link is >unvisited, then it will change the font color on hover. > >Here is my CSS > >#content a:link { > color: #CACBCA; > font-weight: bold; > } > >#content a:hover { > background-color: #ffffff; > color: #048004; > font-weight: bold; > } > >#content a:visited { > color: #CACBCA; > font-weight: bold; > } If a link is visited and being hovered then which rule is applied? The one specified last in the CSS. Swap the two rules around and hover will apply to visited as well as unvisited links. Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor Steve Pugh <steve@pugh.net> <http://steve.pugh.net/> | |||
| | #4 | ||
| <style> <!-- A:link { color: #808080; text-decoration: none} A:active { color: #808080; text-decoration: none} A:visited { color: #808080; text-decoration: none} A:hover { color: #FF0000; text-decoration: none} --> </style> -Mike "Kathleen Coyne" <kathleencoyne781@aol.com> wrote in message news:a5423969.0307030459.2061a183@posting.google.c om... > For some reason, I just can't change the font color for hover. It > allows me to change the background color, no problem. But, if the > link is visited, it will not change the font color, if the link is > unvisited, then it will change the font color on hover. > > Here is my CSS > > #content a:link { > color: #CACBCA; > font-weight: bold; > } > > #content a:hover { > background-color: #ffffff; > color: #048004; > font-weight: bold; > } > > #content a:visited { > color: #CACBCA; > font-weight: bold; > } > > any ideas? | |||
| | #5 | ||
| "Kathleen Coyne" <kathleencoyne781@aol.com> wrote in message news:a5423969.0307030459.2061a183@posting.google.c om... > For some reason, I just can't change the font color for hover. It > allows me to change the background color, no problem. But, if the > link is visited, it will not change the font color, if the link is > unvisited, then it will change the font color on hover. > > Here is my CSS > > #content a:link { > color: #CACBCA; > font-weight: bold; > } > > #content a:hover { > background-color: #ffffff; > color: #048004; > font-weight: bold; > } > > #content a:visited { > color: #CACBCA; > font-weight: bold; > } > > any ideas? Remember, Luther Vandross Has Acne | |||
| | #6 | ||
| > Remember, > > Luther > Vandross > Has > Acne LoVe - HA! :-) -- P@tty Ayers http://www.WebDevBiz.com Web Design Contract, Estimate Worksheet -- | |||
| | #7 | ||
| In article <be283t$van$1@news8.svr.pol.co.uk>, no1@home.invalid says... > > "Kathleen Coyne" <kathleencoyne781@aol.com> wrote in message > news:a5423969.0307030459.2061a183@posting.google.c om... > > For some reason, I just can't change the font color for hover. It .... > > any ideas? > > Remember, > > Luther > Vandross > Has > Acne > For some reason 'links is over active' sticks in my mind: _link_s v_is_ited h_over_ _active_ | |||
| Featured Websites | ||||
|
![]() |
| Tags: color, css, link, problem |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| d-link di-604 problem | Console Subjects | 2 | 06-26-2007 2:11 AM | |
| D-Link 704p problem help | Guy Beazley | Console Subjects | 5 | 06-26-2007 2:02 AM |
| Widcomm & D-link DBT 120 problem | David Raux | Bluetooth Software and Hardware | 3 | 06-17-2007 1:46 PM |
| CS3 base color problem | DL | Graphics in general | 4 | 06-12-2007 12:28 AM |
| Odd Tiff color problem | Stardog | Graphics in general | 4 | 06-11-2007 10:29 PM |
| Featured Websites | ||||
|