Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CSS and cfcontent

Guest
Jul 26, 2010 Jul 26, 2010

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...

TOPICS
Getting started
966
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jul 26, 2010 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 22, 2010 Oct 22, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources