Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Web Professional