Filtering out ALL spaces would also mean that you lose the spaces *inside*
the tags. Better to do what I suggested before: use only CRLF and TABS for
indenting/spacing and REREplace those. Or use a more complicated regexp to
only filter for spaces outside the tags.




-------------------------------------------------------------
Hugo Ahlenius                  E-Mail: [EMAIL PROTECTED]
Project Officer                Phone:            +46 8 230460
UNEP GRID-Arendal              Fax:              +46 8 230441
Stockholm Office               Mobile:         +46 733 467111
                               WWW:       http://www.grida.no
------------------------------------------------------------- 






| -----Original Message-----
| From: Joshua Miller [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, August 19, 2003 15:20
| To: CF-Talk
| Subject: RE: Removing extra space between images
|
|
| Try wrapping everything between the <td></td> tags in a
| <cfsavecontent>
| block, then when you display, strip out any returns using
| ReReplaceNoCase(). That should solve your problem.
|
| <cfsavecontent variable="images">
|       ... Your processing here ...
| </cfsavecontent>
|
| <td>#ReReplaceNoCase(images,"[[:space:]]","","ALL")#</td>
|
| Joshua Miller
| Head Programmer / IT Manager
| Garrison Enterprises Inc.
| www.garrisonenterprises.net
| [EMAIL PROTECTED]
| (704) 569-0801 ext. 254
|
| **************************************************************
| **********
| *************
| Any views expressed in this message are those of the
| individual sender,
| except where the sender states them to be the views of
| Garrison Enterprises Inc.
|
| This e-mail is intended only for the individual or entity to
| which it is
| addressed and contains information that is private and
| confidential. If
| you are not the intended recipient you are hereby notified that any
| dissemination, distribution or copying is strictly prohibited. If you
| have received this e-mail in error please delete it immediately and
| advise us by return e-mail to
| [EMAIL PROTECTED]
| **************************************************************
| **********
| *************
|
|
| -----Original Message-----
| From: Terry Troxel [mailto:[EMAIL PROTECTED]
| Sent: Monday, August 18, 2003 11:52 PM
| To: CF-Talk
| Subject: Re: Removing extra space between images
|
|
| I guess I wasn't specific enough for you Mike.
| I have the images displaying perfectly one image wide.
| It's the space between the images above and below I am trying
| to get rid
| of.
|
| I have alot of cfif, cfelesif, cfswitch code running between the
| <td></td> tags and when I put it into one line of code it displays
| perfectly, it's just it becomes impossible to edit, read that's all.
|
| Terry
|
| ----- Original Message -----
| From: "Mike Alberts" <[EMAIL PROTECTED]>
| To: "CF-Talk" <[EMAIL PROTECTED]>
| Sent: Monday, August 18, 2003 1:35 PM
| Subject: Removing extra space between images
|
|
| > You're trying to jam up to 3 50px wide images into a table
| cell that
| > is
| only 50px wide. Put line breaks after your image tags, and set the
| valign of your table cell to "top".
| >
| > HTH
| >
| > Mike
| >
| > >I an trying to dynamically build an html table and draw
| > >wall modules and am having a problem with html or CF
| > >adding extra space between images.
| > >
| > >Here is an simplistic example:
| > >
| > ><cfset x = 40><cfset y = 100><cfset z = 50><cfset total = x+y+z>
| > >
| > ><table width="50" cellpadding="0" cellspacing="0">
| > ><tr>
| > ><td width="50" height="#total#">
| > ><cfif transom is 1>
| > >    <img src="transom.jpg" width="50" height = "#x#"> </cfif>
| > ><img src="window.jpg" width-"50" height="#y#">
| > ><cfif kickplate is 1>
| > >    <img src="kickplate.jpg" width="50" height = "#z#">
| > ></cfif>
| > ></td>
| > ></tr>
| > ></table>
| > >
| > >When this table displays there is space between
| > >each of the three images above and below
| > >
| > >If I condense the table into ONE line of code
| > >the spacing goes away and the pictures connect
| > >perfectly together with ZERO spacing period.
| > >
| > ><table width="50" cellpadding="0" cellspacing="0"><tr><td
| width="50"
| > >height="#total#"><cfif transom is 1> <img src="transom.jpg"
| > >width="50" height = "#x#"></cfif><img src="window.jpg" width-"50"
| > >height="#y#"><cfif kickplate is 1><img src="kickplate.jpg"
| width="50"
|
| > >height = "#z#"></cfif></td></tr></table>
| > >
| > >It makes modifying the code or reading it a royal pain.
| > >
| > >Any help would be appreciated.
| > >
| > >Terry Troxel
| > >
| > >
| >
| >
|
| 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to