Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #301541

    Hi there,
    Is there a way of getting a green tick and a red cross in a data table used to compare to products?
    Many thanks

    #301903

    Hi!

    Try using this shortcodes:

    Green tick:

    [av_font_icon icon='ue812' font='entypo-fontello' style='' caption='' link='' linktarget='' color='#81d742' size='40px' position='left' custom_class=''][/av_font_icon]

    Red X:

    [av_font_icon icon='ue813' font='entypo-fontello' style='' caption='' link='' linktarget='' color='#dd3333' size='40px' position='left' custom_class=''][/av_font_icon]

    Regards,
    Josue

    #301966

    As always – excellent!

    Many thanks

    #301967

    You are welcome, always glad to help :)

    Regards,
    Josue

    #301972

    Hi Josue,

    Sorry, we just need to center the text in a couple of table cells. Could you tell us what code to use for that, please?
    (At the moment, text in data tables is left aligned by default it seems)

    Many thanks

    #302048

    Hi,

    Can you post the link to the Page in question please?

    Regards,
    Josue

    #302090
    This reply has been marked as private.
    #302091

    Hey!

    Try adding this code to the Quick CSS:

    td .av_font_icon {
        text-align: left;
    }

    Cheers! 
    Josue

    #302092

    Hi Josh,

    Thanks for this. Can I just check something? We don’t wish to center align the text in all tables – only in this one data table. Is this code still OK?

    Many thanks

    Robert

    #302094

    Hi!

    Try with this instead:

    .page-id-1129 .avia-table td .av_font_icon {
        text-align: left;
    }

    Best regards,
    Josue

    #302095

    Thanks again Josue. We’re trying to center the text, so that should be “text-align: center;” no?

    #302096

    Discard my previous suggestion, use this code instead:

    .page-id-1129 table.avia-table td {
        text-align: center;
    }

    Cheers!
    Josue

    #302098

    Hi Josue! Thanks again! Sorry, I’m just looking at this and perhaps I wasn’t clear enough at the start. I should have said we only want to center the text in column 2 and 3, not in column 1 (column 1 text should remain left aligned). Is the code good for that? Sorry for not being clearer.

    #302100

    Try with this:

    .page-id-1129 table.avia-table td:nth-child(2n), .page-id-1129 table.avia-table td:nth-child(3n) {
        text-align: center;
    }
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.