SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 17th, 2002, 08:41 PM
HeadElf's Avatar
HeadElf HeadElf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 250 HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 2 m 34 sec
Reputation Power: 12
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

Reply With Quote
  #2  
Old November 17th, 2002, 08:59 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
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?

Reply With Quote
  #3  
Old November 17th, 2002, 09:22 PM
HeadElf's Avatar
HeadElf HeadElf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 250 HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 2 m 34 sec
Reputation Power: 12
Quote:
Originally posted by adios
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?


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>

Reply With Quote
  #4  
Old November 17th, 2002, 09:23 PM
HeadElf's Avatar
HeadElf HeadElf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 250 HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 2 m 34 sec
Reputation Power: 12
Interestingly enough, if I put the css directly into the document instead of as a referenced link, it works just fine.

HeadElf

Reply With Quote
  #5  
Old November 17th, 2002, 09:31 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
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?

Reply With Quote
  #6  
Old November 17th, 2002, 09:38 PM
HeadElf's Avatar
HeadElf HeadElf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 250 HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level)HeadElf User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 2 m 34 sec
Reputation Power: 12
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Style attribute and mailto: link


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway