Tagged: , , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #512201

    Hi

    I want to change the font colour of these fields ….

    But I dont want it to be a site wide change. Only for this table within the accordion.

    Thanks

    #512331

    Hey richardelectrix!

    Drag a codeblock element to your page and add this inside.

    <style type = "text/css">
    td { color: red !important; }
    </style>

    Best regards,
    Elliott

    #512644

    Sorry, I meant to say I only want the first column of the table to have different coloured text.

    The default table works how I want it but as soon as I copy it into an accordion, the formatting on the first column text is lost.

    #512989

    Hi!

    Use inline styles.

    <span style = "color:red;">Some text</span>
    

    Best regards,
    Elliott

    #513755

    Hi

    Thats what I thought too. This is my current code ….

    [av_table purpose='tabular' pricing_table_design='avia_pricing_default' pricing_hidden_cells='' caption='' responsive_styling='avia_responsive_table']
    [av_row row_style=''][av_cell col_style='']<span style="color: #007ab6;"><strong>Material</strong></span>[/av_cell][av_cell col_style='']Stainless Steel (see specs of individual products for grade information)[/av_cell][/av_row]
    [av_row row_style=''][av_cell col_style='']<span style="color: #007ab6;"><strong>Thickness</strong></span>[/av_cell][av_cell col_style='']1.2 mm (minimum)[/av_cell][/av_row]
    [av_row row_style=''][av_cell col_style='']<span style="color: #007ab6;"><strong>Finish</strong></span>[/av_cell][av_cell col_style='']Polished or Satin (Brushed)[/av_cell][/av_row]
    [av_row row_style=''][av_cell col_style='']<span style="color: #007ab6;"><strong>Lengths</strong></span>[/av_cell][av_cell col_style='']3.0 m[/av_cell][/av_row]
    [av_row row_style=''][av_cell col_style='']<span style="color: #007ab6;"><strong>Rating</strong></span>[/av_cell][av_cell col_style='']See specs for individual products[/av_cell][/av_row]
    [/av_table]

    But the first column text is displaying like this …

    http://screencast.com/t/pGerdr5OAy

    The first column text should be #007ab6 which is a blue colour.

    #513894

    Hey!

    Please add following code to Quick CSS

    td span strong {
        color: inherit!important;
    }

    Cheers!
    Yigit

    #513896

    Perfect!!!

    #513897

    Do i still need the SPAN around the text in the table? Or will it inherit it from the default table?

    #513898

    Hi!

    It is better to keep it. If you would like to remove it, please edit your element an give it a custom CSS class – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
    and then change the code to following one

    .your-custom-class td strong {
        color: inherit!important;
    }

    Best regards,
    Yigit

    #514286

    Thanks – this can be closed.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘How to change the font colour of text within table within accordion’ is closed to new replies.