# Styling TextField with CSS (restrictions/limitations?)

**URL:** <https://forum.kirupa.com/t/styling-textfield-with-css-restrictions-limitations/316192>\
**Category:** flash\
**Created:** [November 15, 2010, 7:56pm UTC](https://forum.kirupa.com/t/styling-textfield-with-css-restrictions-limitations/316192 "2010-11-15T19:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasper](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rasper](https://forum.kirupa.com/u/Rasper)\
**Post date:** [November 15, 2010, 7:56pm UTC](https://forum.kirupa.com/t/styling-textfield-with-css-restrictions-limitations/316192/1 "2010-11-15T19:56:02Z")

</div>

I’m dynamically loading a CSS file and text file to populate a TextField. As far as the default styles are concerned, no problem!

But as soon as I try stuff like **p.title** , the style is not applied. Is this a restriction of the CSS support that Flash/Flex offers? Do I have to resort to the “simpel-style-selectors” like “.title” or “p” in my CSS?

Works:

```auto
.title { color:#FF0000; }

```

Doesn’t work:

```auto
p.title { color:#FF0000; }

```

ps: I know that Flash doesn’t support everything that CSS has to offer, but I’m looking for confirmation of someone who can tell me for a fact that the above p.class-selector is not supported. I didn’t find anything by googling about this. ☹  
Also, if there is a way around it, I’d be glad to know! :sen:

Thanks
