This is a discussion on "Trouble formatting vlink with css! Help!" within the Web Page Design section. This forum, and the thread "Trouble formatting vlink with css! Help! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Trouble formatting vlink with css! Help!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Trouble formatting vlink with css! Help!
Greetings all!
My first post! I am having a heck of a time formatting a visited link with css! Here is my link CSS code to handle links that is from an external file called 'basic.css' a:link { font-size:8pt; line-height:8pt; text-decoration: none; font-family:Arial, sans-serif; color:#717d46; } a:visited a:link { font-size:8pt; line-height:8pt; font-family:Arial, sans-serif; color:#717d46; } a:hover a:link { font-size:8pt; line-height:8pt; font-family:Arial, sans-serif; color:#717d46; } a:active a:link { font-size:8pt; line-height:8pt; font-family:Arial, sans-serif; color:#717d46; } Basically I want them to ALWAYS look the same, visited, hovered, or whatever. And they look just like I have defined! All green and no underline! But low and behold when I click one - it turns PURPLE and UNDERLINED! UGlY! How do I cancel this! I have been pulling my hair out! I must be going crazy, but I cant find the code in my page anywhere that defines a purple link! No vlink="" in the body, nothing! Help? Thanks! Nate~ |
|
|
|
|||
|
Re: Trouble formatting vlink with css! Help!
I think you need to try tweaking that css code a little
Try this instead... a:link { font-size:8pt; line-height:8pt; text-decoration: none; font-family:Arial, sans-serif; color:#717d46; } a:visited { font-size:8pt; line-height:8pt; font-family:Arial, sans-serif; color:#717d46; } a:hover { font-size:8pt; line-height:8pt; font-family:Arial, sans-serif; color:#717d46; } a:active { font-size:8pt; line-height:8pt; font-family:Arial, sans-serif; color:#717d46; } If you wanted to keep the a:link you should separate by a comma. But this code above should work... that's what I use! If not we'll need to see a link to the whole site! |
|
||||
|
Re: Trouble formatting vlink with css! Help!
|
|
|||
|
Re: Trouble formatting vlink with css! Help!
ooo... even shorter code... Nice!
|
|
||||
|
Re: Trouble formatting vlink with css! Help!
Or if you REALLY wanted to keep the pseudo-classe, like Lchad said, you need to put a comma to separate them like this
|
|
|||
|
Wow! Thanks so much! The code seems to work great, and soooo short too!
You guys are great! Many many thanks! Nate~ |
![]() |
| Tags |
| avisited alink, vlink |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| XML with CSS Formatting | taemurz | Web Page Design | 11 | Jun 23rd, 2007 21:57 |
| Text formatting trouble | BGarner | Web Page Design | 4 | Jan 8th, 2007 11:47 |
| XSL FO Table formatting | davedran | Other Programming Languages | 0 | Dec 13th, 2006 07:35 |
| XML Help for Newbie - Formatting Content | AceTutor | Other Programming Languages | 0 | Jul 31st, 2006 12:04 |
| Formatting not working | masonbarge | Webforumz Suggestions and Feedback | 4 | Jun 26th, 2006 14:41 |