# Help..CSS file not getting applied

**URL:** https://forum.kirupa.com/t/help-css-file-not-getting-applied/148550
**Category:** Uncategorized
**Created:** [May 20, 2005, 8:49pm UTC](https://forum.kirupa.com/t/help-css-file-not-getting-applied/148550 "2005-05-20T20:49:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![silentweed](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@silentweed](https://forum.kirupa.com/u/silentweed)
#### Post date: [May 20, 2005, 8:49pm UTC](https://forum.kirupa.com/t/help-css-file-not-getting-applied/148550/1 "2005-05-20T20:49:11Z")

</div>

Hi guys ok this is my code, my CSS is not getting applied why? any help would be appreciated…thanks

```auto

var myLV_lv:LoadVars = new LoadVars();
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("styles/cssStyles.css");

cssStyles.onLoad = function(bSuccess:Boolean) {
	if (bSuccess) {
		trace("success loading css");
		infoLoader_txt.styleSheet = cssStyles;
		myLV_lv.load("information/aboutme/aboutme.txt");
	} else {
		trace("failure");
	}
};

myLV_lv.onLoad = function(success:Boolean) {
	if (success == true) {
		infoLoader_txt.htmlText = myLV_lv.info;
		infoLoader_txt.scroll = 1;
	} else {
		infoLoader_txt.text = "I'm sorry this page didnt load correctly";
	}
};

```

The style is as follows :

```auto

headinginfo {
              font-family: "Verdana";
              font-size: 40px;
}

```

And the external text file is:

```auto

info=<html><body><span class="headinginfo">Education</span><b>BSc Mathematics</b>
 - University of Warwick, 1997<br><b>A-Levels</b> -Mathematics, etc etc..</body></html>

```

Now the text is succefully being loaded into the dynamic text field and also in the trace statement i get “success loading css” so it looks like the css is loading as well…

Also the font Verdana has been embedded in the movie(so shudnt be a problem in that respect)…and the button render as html is pressed!!

So why is the class not being applied to the word “Education”? ANy help appreciated ,its driving me nuts!!

thanks
