This might not be relevant but, what is returned by
get_events.event_description?  If it is some type of HTML such as <span
style="font-weight:normal; color:black;">...</span> then it will overwrite
the <b> styling because it is inside it.

_____ 

Jake Churchill 
Team Leader
11204 Davenport, Ste. 100
Omaha, NE  68154 
http://www.cfwebtools.com 
402-408-3733 x103 


-----Original Message-----
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 5:28 PM
To: CF-Talk
Subject: Why does this code disable styling?

Hi, all.

In trying to tweak the display of some of my data in a textfield,
I started using <b style="color:red;"></b> to make my
heading stand out from the text under the heading.

All was working great until I added some code to try to get
the browser to honor spaces created with the spacebar,
like I do with replacing carriage returns, chr(13)'s, with
<br>.

So I tried this:

#replace(replace(get_events.event_description, "#chr(13)#", "<br>", "All"),
"#chr(32)#", "&nbsp;", "All")#

&nbsp; was the closest I could find to a spacebar html representation
at the moment.  (Is there something better to use?)

Anyway, the code above works fine, but it disables my
<b style="color:red;"></b> code.  No bold and no red.

Why is that?

Rick





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290831
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to