# Different styles in same textField

**URL:** <https://forum.kirupa.com/t/different-styles-in-same-textfield/279039>\
**Category:** Uncategorized\
**Created:** [January 8, 2009, 8:09pm UTC](https://forum.kirupa.com/t/different-styles-in-same-textfield/279039 "2009-01-08T20:09:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmoothDime](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@SmoothDime](https://forum.kirupa.com/u/SmoothDime)\
**Post date:** [January 8, 2009, 8:09pm UTC](https://forum.kirupa.com/t/different-styles-in-same-textfield/279039/1 "2009-01-08T20:09:54Z")

</div>

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
