Search code examples
coldfusioncoldfusion-10

CFdocument losing CSS for border-bottom


When using CFdocument to create a pdf in CF10 I lose a lot of css. Is there any documentation anywhere that shows what css is allowed to be used for CFdocument or is it just keep trying and its hit or miss. Right now I am just trying to add a border-bottom style and it will not show whether its inline or a cascading style sheet.

Does anyone know where I can find what CSS can be used for CFdocument to help me make this border-bottom appear and other CSS that is not showing.

<cfdocument format="pdf" scale="75" backgroundvisible="yes" overwrite="no" fontembed="yes">
<tr style="border-bottom: solid 1px coral;"> 

Solution

  • It's right there with the documentation under Supported CSS Styles - cfdocument I don't think the supported tags has changed since ColdFusion 9.

    Supported CSS styles

    The cfdocument tag supports the following CSS styles:

    background

    background-attachment

    background-color

    background-image

    background-position

    background-repeat

    border

    border-bottom

    border-bottom-color

    border-bottom-style (solid border only)

    border-bottom-width

    border-color

    border-left

    border-left-color

    border-left-style (solid border only)

    border-left-width

    border-right

    border-right-color

    border-right-style (solid border only)

    border-right-width

    border-spacing

    border-style (solid border only)

    border-top

    border-top-color

    border-top-style (solid border only)

    border-top-width

    border-width

    bottom

    clear

    clip

    color

    content (strings, counters only)

    counter-increment

    counter-reset

    cursor

    display

    float

    font

    font-family

    font-size

    font-style

    font-weight

    height

    left

    letter-spacing

    line-height

    list-style-type

    margin

    margin-bottom

    margin-left

    margin-right

    margin-top

    outline

    outline-color

    outline-style (solid, dotted, dashed only)

    outline-width

    padding

    padding-bottom

    padding-left

    padding-right

    padding-top

    page-break-after

    page-break-before

    page-break-inside

    position

    right

    text-align (left, right, and center)

    text-decoration

    text-indent

    top

    unicode-bidi

    vertical-align

    visibility

    white space (normal, nowrap only)

    width

    z-index