|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
CSS Style attribute and mailto: link
Can someone tell me why css style settings for links won't effect a mailto: link? Is there anyway to make it happen without individually coding style into each mailto: link?
Thanks, HeadElf
__________________
HeadElf OfficeElf.com |
|
#2
|
|||
|
|||
|
It should work...a link with a mailto: protocol is, afaik, treated just like any other Link object by CSS. Could you provide some sample code that doesn't style properly?
|
|
#3
|
||||
|
||||
|
Quote:
Here's the content of the css file: <style type="text/css"> A:link { text-decoration: none; color:"#990000"; } A:visited {text-decoration: none; color:"#009900"; } A:active { text-decoration: none; color:"#999900"; } A:hover { text-decoration: underline; color: red;} BODY {background-image:url(images/gilcrestwelshponiesbg.gif);} </style> Here's the link. Ive messed with this a while and ANY link with a mailto: internal reference is treated like a not styled link. All the other links work just fine and look as they ought. HeadElf <HTML> <HEAD> <TITLE>Gilcrest Welsh Ponies Home Page - A Stud of Select, Quality Welsh & Part Welsh Ponies </TITLE> <link rel=stylesheet href="GWP.css" type="text/css"> </HEAD> <BODY> <CENTER>Contact us at 760-787-0433 or email us at <a href="mailto:renie@gilcrestwelshponies.com">Gilcrest Welsh Ponies</a>.<br><B><FONT COLOR="#ff0000" SIZE="+4" FACE="Stonehenge">Gilcrest</FONT></B> <FONT COLOR="#ff0000" SIZE="+1"> - A Stud of Select, Quality Welsh & Part Welsh Ponies</FONT></center> </BODY> </HTML> |
|
#4
|
||||
|
||||
|
Interestingly enough, if I put the css directly into the document instead of as a referenced link, it works just fine.
HeadElf |
|
#5
|
|||
|
|||
|
Well, you've got some syntax errors:
color:"#990000"; No quotes around values in a style sheet, they're assumed to be strings. Regardless - this still displays correctly (IE 5.5/Windows 2000pro) here. Correct the errors and see, but if the non-mailto links are OK it must be something else. What platform are you using? |
|
#6
|
||||
|
||||
|
IE 5.5 I can use the style attribute in the link itself and it works fine. I can take the css content and put it in the header and it works fine. If I use the included reference it doesn't work for mailto:'s.
HeadElf |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Style attribute and mailto: link |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|