Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > inline css links styles?

inline css links styles?
Thread Tools
Forum Regular
Join Date: Jan 2006
Location: Pasadena, Ca
Status: Offline
Reply With Quote
Jun 23, 2006, 01:56 AM
 
I'm doing an email blaster, which means that I need to use inline css in order for it to properly render in gmail. I'm not that knowledgable with this stuff.. but pretty much have it down, save for defining how the links are displayed in their specific <div>.

what do I need to do?
[font=verdana]2.16 macbook pro | 2gb | 7200 rpm | 2405FPW[/font]
     
Professional Poster
Join Date: Jun 2002
Location: Southern California
Status: Offline
Reply With Quote
Jun 23, 2006, 02:01 AM
 
Code:
<div style="a:blah,blah,blah"></div>
IIRC
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 23, 2006, 08:28 AM
 
You're talking about the :link, :visited, :hover, and :active pseudoclasses, right?

I don't think there's a way to do that inline, unfortunately. At best, you might be able to emulate :link by using the style attribute on the individual links. Inline CSS, though, can't handle things like :hover or :visited; that's not what it's designed for.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
fowler  (op)
Forum Regular
Join Date: Jan 2006
Location: Pasadena, Ca
Status: Offline
Reply With Quote
Jun 23, 2006, 09:27 AM
 
yeah, that's what i wanted to do. I ended up pulling apart an old apple email in gmail and this worked:

Code:
<a href="http://website.com" style="color:#606b13;text-decoration:underline;" target="_blank">website</a>
[font=verdana]2.16 macbook pro | 2gb | 7200 rpm | 2405FPW[/font]
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:52 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2