Background color not displayed if set after any text formatting

Discussion in 'Programming' started by Renu Deshpande, Aug 2, 2009.

  1. #1
    Hi all ,
    Can anyone help me solving this issue.

    I am using FCK Editor on my coldfusion page. Then I am generating PDF of the data using <cfdocument> tag.

    If I format the text first and then set the background color , the background color is not rendered on PDF.

    Consider the cases :

    Case 1: Type the text , Select the text , Set background , then format the text.

    Resulting html :

    <span style="font-family: Comic Sans MS">
    <b>
    <span style="background-color: #ff0000">
    COLOR-DISPLAYED
    </span>
    </b>
    </span>

    Output on PDF : Text rendered with background color and proper formatting.

    Case 2: Type the text , Select the text , format the text , then set the background.

    Resulting html :

    <span style="background-color: #ff0000">
    <span style="font-family: Comic Sans MS">
    <b>
    COLOR-NOT-DISPLAYED
    </b>
    </span>
    </span>

    Output on PDF : Text rendered with proper formatting but background color is not rendered.


    Thanks in advance
     
    Renu Deshpande, Aug 2, 2009 IP