PDA

View Full Version : different styles in same textField



SmoothDime
January 8th, 2009, 04:09 PM
Hi,

I need to use two different styles for anchor tags in my textField but I can't figure it out.

this works for all anchors:

ss.parseCSS('a:link{color:#0000ff; fontWeight:bold; text-decoration:none;}');

but as soon as i do this and use a span in the text all styles go away:

ss.parseCSS('.tester a:link{color:#0000ff; fontWeight:bold; text-decoration:none;}');

thx

creatify
January 8th, 2009, 05:10 PM
I could be wrong here, so consider my post as a potential bump only as I'd like to know if this is possible as well.

I've done extensive testing with trying to get two different anchor link styles to work within one textField and ultimately determined it is not possible to do this. Setting two sets of styles within two separate tf's works, of course. Another consideration we made was finding the text position and overlaying a sprite with a blend mode to get a somewhat unpredictable appearance difference.

One thing I didn't try was something to the effect of:

<a href='asdfasdf'><span class='forceStyle'>Your link</span></a>

Maybe give that a whirl? though, a hover may disregard the span.