# \[f8as2\]Can I apply CSS to input text?

**URL:** https://forum.kirupa.com/t/f8as2-can-i-apply-css-to-input-text/236667
**Category:** flash
**Created:** [August 22, 2007, 5:38pm UTC](https://forum.kirupa.com/t/f8as2-can-i-apply-css-to-input-text/236667 "2007-08-22T17:38:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![neoarch](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@neoarch](https://forum.kirupa.com/u/neoarch)
#### Post date: [August 22, 2007, 5:38pm UTC](https://forum.kirupa.com/t/f8as2-can-i-apply-css-to-input-text/236667/1 "2007-08-22T17:38:39Z")

</div>

Are you able to attach a style sheet to an input textfield? If so, how do I go about doing that?

would it be a

textfield.onChanged = function{  
textfield.htmlText = “\<.myStyle\>”+text+"\</.myStyle\>";  
}

type of thing?
