• Resolved paggy686868

    (@paggy686868)


    Hi.
    can’t seem to figure this out, in column 4 i have a category (MENS) trying to style this word with this code.

    [table id=1 filter_date="future" filter_date_columns="1" cache_table_output=false /highlight="MENS||MENS" highlight_columns="4" highlight_case_sensitive="true" highlight_full_cell_match="true" /]
    
    CSS. .tablepress-id-1 tbody td {
    	font-family: Tahoma;
    	font-size: 12px;
    	color: #000000;
    	padding: 1px;
    }
    
    .tablepress thead th,
    .tablepress tfoot th {
    	background-color: #66CCCC;
    	font-size: 11px;
    	padding: 1px;
    }
    
    .tablepress-id-1 .highlight-MENS {
    	background-color: #ff0000 !important;
    }
    
    .tablepress-id-1 .highlight-MENS {
    	background-color: #00ff00 !important;
    }

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    Can you help please.
    Philip

    • This topic was modified 7 years, 2 months ago by bdbrown.

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Please remove the / in the Shortcode that is directly before highlight=.

    Then, in the CSS code, use MENS in lowercase, like

    .tablepress-id-1 .highlight-mens {
      background-color: #ff0000 !important;
    }

    Just to be sure: Did you install and activate the TablePress Highlighting Extension?

    Regards,
    Tobias

    Thread Starter paggy686868

    (@paggy686868)

    That works just fine, just one more question, I have Men, ladies and junior in the same cell is it possible to style these?
    Philip.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes remove the highlight_full_cell_match="true" from the Shortcode to have that recognized as well. Or what do you mean here?

    Regards,
    Tobias

    Thread Starter paggy686868

    (@paggy686868)

    Thank you for your quick replay.
    Regards Philip.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, no problem! You are very welcome!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cell formatting’ is closed to new replies.