Hi Mike If maintenance is the issue, cant you just have the style attribute a cf variable? Just a thought.
cheers Drew -----Original Message----- From: "Mike Kear" <[EMAIL PROTECTED]> To: cfaussie@googlegroups.com Date: Thu, 14 Sep 2006 13:49:25 +1000 Subject: [cfaussie] Re: Outputting to Excel - how to incorporate styles > > Thanks, Dale, but as I've posted several times, I'm looking for a way > NOT to have to put the styles in every cell. I dont want to have to > do this: > > <cfcontent type="application/vnd.ms-excel"> > <table border="1"> > <tr> > <td style="border-bottom:1px solid > #164677;border-top:2px solid #164677;padding:2px 3px 5px > 3px>Hello</td> > <td style="border-bottom:1px solid > #164677;border-top:2px solid #164677;padding:2px 3px 5px > 3px>There</td> > </tr> > </table> > > That's a nighmare to read, and pure hell to maintain. I would much > rather do this (which is smaller, cleaner, easier to maintain, and > easier to get consistency:. > > <cfcontent type="application/vnd.ms-excel"> > <table border="1"> > <tr class="lite"> > <td class="subtotal">Hello</td> > <td class="subtotal">There</td> > </tr> > </table> > > > I know it's possible , because I've seen it done but i cant remember > how. > > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > > > > On 9/14/06, Dale Fraser <[EMAIL PROTECTED]> wrote: > > > > Mike, > > > > I don't waste my time guessing. My first post worked fine, you > haven't > > specified what you want to style other than cells or rows. But it > does work > > try this. > > > > <cfcontent type="application/vnd.ms-excel"> > > <table border="1"> > > <tr> > > <td bgcolor="#CCCCCC">Hello</td> > > <td bgcolor="#FF0000">There</td> > > </tr> > > </table> > > > > Regards > > Dale Fraser > > > > http://dale.fraser.id.au > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---