help! i have a blackish site, and wanting all links to be plain white, no underscore, no hover or visited effect, i cant get anything to work, help please? 
CSS link coloring
| WRC Meister wrote: |
| help! i have a blackish site, and wanting all links to be plain white, no underscore, no hover or visited effect, i cant get anything to work, help please? |
You probably need to get acquainted with pseudo-classes. Try this link. The examples use "color" but will of course work with all properties.
Hope it helps (let me know if it didn't)
As you said I think you mean you need white links with no text decoration, hover and visited effects. OK, try this:
I used "!important" to overwrite the previous values of the CSS.
| Code: |
|
/* Link styles */ a, a:hover, a:visited, a:active{ color:#fff !important; textdecoration:none !important; } |
I used "!important" to overwrite the previous values of the CSS.
Ive never learned anything about tags in css like !important, what do they do?
Ive never learned anything about tags in css like !important, what do they do?
woops sorry bout that just a lil mistake there
I'm pretty sure by default newer or more-specific CSS rules will overwrite the previously set rules. !important is only needed to overwrite rules set later or more specifically. You probably won't need to use it often except maybe as a shortcut in some specific situations.
| Agent ME wrote: |
| I'm pretty sure by default newer or more-specific CSS rules will overwrite the previously set rules. !important is only needed to overwrite rules set later or more specifically. You probably won't need to use it often except maybe as a shortcut in some specific situations. |
In other word, !important sets rule to be final.
| Quote: |
| In other word, !important sets rule to be final. |
Yes and no. !important are command for FF and other browsers but IE don't accept it. For example this is very usefull in menu when you want define submenu.
| Code: |
| ul#mojmenu li {
position : relative; display : block !important; // this define FF and other browsers display : inline; // this define IE } |
Sonam
