# CSS adds extra line?

**URL:** https://forum.kirupa.com/t/css-adds-extra-line/230179
**Category:** flash
**Created:** [June 23, 2007, 4:41pm UTC](https://forum.kirupa.com/t/css-adds-extra-line/230179 "2007-06-23T16:41:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![selliott](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@selliott](https://forum.kirupa.com/u/selliott)
#### Post date: [June 23, 2007, 4:41pm UTC](https://forum.kirupa.com/t/css-adds-extra-line/230179/1 "2007-06-23T16:41:56Z")

</div>

I’m having a problem with extra lines being added to my text anytime the stylesheet is applied?? Check this out and please let me know what the problem is.

**Here’s the actionscript:**

this.createTextField(“bodytxt”, 0, 50, 30, 430, 200);  
bodytxt.html = true;  
bodytxt.border = true;  
bodytxt.wordWrap = true;  
bodytxt.multiline = true;  
var format = new TextField.StyleSheet();  
var path = “stylesheet.css”;  
var quick = “\<p align=‘center’\>TESTING CENTER\<br /\>\<strong\>TESTING BOLD\</strong\>\<br /\>\<u\>\<font color=’#ff0000’\>TESTING RED UNDERLINE\</font\>\</u\>\<br /\>\<em\>TESTING ITALIC\</em\>\<br /\>Just regular text\</p\>”;  
format.load(path);  
format.onLoad = function(loaded) {  
if (loaded) {  
trace(“css loaded”);  
bodytxt.styleSheet = format;  
bodytxt.htmlText = quick;  
} else {  
bodytxt.htmlText = “Error loading CSS file!”;  
}  
};

**Here’s the css:**  
b, strong {font-weight: bold; color: #396780;}  
i, em {font-style: italic;}
