Skip to main content
July 26, 2010
Question

CSS and cfcontent

  • July 26, 2010
  • 2 replies
  • 998 views

Hi All- Does linked CSS document apply styles to the HTML within cfcontent (type="excel"). I  do not see any CSS formatting in the excel document...

This topic has been closed for replies.

2 replies

October 22, 2010

use following code for your requirement in css

a[href $='.xls'] { 
   padding
-right: 18px;
   background
: transparent url(icon_xls.gif) no-repeat center right;
}

Remember to replace icon url what you want.

Please let me know if you are looking the same

Thanks

Pankaj Pandey

Web Professional

ilssac
Inspiring
July 26, 2010

Maybe.  It depends on the CSS and does your version of Excel understand it, AND are you delivering it with your <cfcontent...>

I.E. It could be concievable that you have a reset parameter in your <cfcontent...> tag that would throw away a CSS link in the document.

But it is important to note that ColdFusion does not actually apply the CSS.  That is done by the client, in your example Excel.