Forum Moderators: open

Message Too Old, No Replies

Display Style Inside a Text Area

         

Scally_Ally

7:59 am on Aug 19, 2005 (gmt 0)

10+ Year Member



Hi there,

Does anyone know of a way that i can display styled text within a text area/box?

say i wanted to write something like this..

<text area>
I am <span class="style1> tearing </span>
my hair out over this <span class="style2">Project</span>
</text>

The text does not get displayed in the relevant styles and all the text gets written to the page.

Anyone know of a workaround to this?

Thanks

Ally

collymellon

9:36 am on Aug 19, 2005 (gmt 0)

10+ Year Member



<div id="text">
I am <span class="boldtext">tearing</span>
my hair out over this <span class="red">Project</span>
</div>

CSS:

.boldtext{
font-weight: bold;
}

.red{
color: red;
}

Works fine make sure you define the text classes in your CSS doc and the first bit you missed a speach mark after style1 class.

Scally_Ally

10:56 am on Aug 19, 2005 (gmt 0)

10+ Year Member



I can get it to work fine inside layers and table cells but inside a text field it displays the whole text.

I assume this is because there is no html markup within a text field.

Any Ideas?

Ally