By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,672 Members | 1,628 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,672 IT Pros & Developers. It's quick & easy.

HTML Decoding

P: n/a
Hi Gang,

I have text that I am putting into a label that has been custom formatted by
a text editor and looks like this:

Some outside text <crl>Some inside text</clr Some outside text

How can I map this to an item in a CSS file so that I can use it to format
the 'Some inside text' portion of the text?

Thanks.

Steve
Jan 7 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Well I dont think you can map it to CSS without changing it to something CSS
can identify against. So, before you add the text to the label do a string
replace on the crl so it becomes a DIV and manipulate the DIV as you would
any div from CSS. Of course you'll need to close the DIV correctly also.

So:
Some outside text <crl>Some inside text</clr Some outside text
becomes
Some outside text <div class="crl">Some inside text</div Some outside text

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Uriah Piddle" <st*************@msn.comwrote in message
news:u1**************@TK2MSFTNGP02.phx.gbl...
Hi Gang,

I have text that I am putting into a label that has been custom formatted
by a text editor and looks like this:

Some outside text <crl>Some inside text</clr Some outside text

How can I map this to an item in a CSS file so that I can use it to format
the 'Some inside text' portion of the text?

Thanks.

Steve

Jan 7 '07 #2

P: n/a
Thanks John.

"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:hs******************************@eclipse.net. uk...
Well I dont think you can map it to CSS without changing it to something
CSS can identify against. So, before you add the text to the label do a
string replace on the crl so it becomes a DIV and manipulate the DIV as
you would any div from CSS. Of course you'll need to close the DIV
correctly also.

So:
Some outside text <crl>Some inside text</clr Some outside text
becomes
Some outside text <div class="crl">Some inside text</div Some outside
text

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Uriah Piddle" <st*************@msn.comwrote in message
news:u1**************@TK2MSFTNGP02.phx.gbl...
>Hi Gang,

I have text that I am putting into a label that has been custom formatted
by a text editor and looks like this:

Some outside text <crl>Some inside text</clr Some outside text

How can I map this to an item in a CSS file so that I can use it to
format the 'Some inside text' portion of the text?

Thanks.

Steve


Jan 8 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.