• Resolved Emma_D

    (@emma_d)


    I have been using this code in a cell as I wanted two different font colors in the cell. It has been working fine but is now adding p tags below.

    Can someone help me figure out why?

    <code /*DO NOT EDIT */ style="border: none !important; box-shadow: none !important; padding-left: 0px !important; font-family: Montserrat, sans-serif; font-size: 14px; font-weight: bold;"><span style="color:#DB0032">Check flag:&nbsp; Red=NO</style>&nbsp; <span style="color:#32A076">Green=YES</style></code>

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I can’t seem to reproduce this. When I check your link, I don’t see extra <p> tags there?

    Also, I’m unsure as to why you are using HTML <code> tags here? Can you explain?

    Finally, there should not be a closing </style> HTML tag there, but a </span>.

    So, can you please fix that cell’s content to

    Check flag:
    Red = NO
    <span style="color:#32A076;">Green=YES</span>

    Regards,
    Tobias

    Thread Starter Emma_D

    (@emma_d)

    Hi Tobias ~

    Thank you for your quick reply.

    The code I had been using was suggested from someone/somewhere – and did work for a time. I have been fiddling with it and just removed most of the code and added the span style – and yes, wrong closing tag, thank you!

    It appears to be displaying as I would like now. Thanks very much for your support.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cell adding p tags under text’ is closed to new replies.