Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1407244

    Hey Enfold Support’

    I’m trying to edit the table, but when adding the table header (css code from documentation), the whole layout, webdesign changes. Please could you help med out?

    Table header
    Should be background color: #f8f9f9

    Used this css from your documentation
    #top .avia-table th {
    background: #f8f9f9;
    color: #17494d;
    }

    The table rows background colour should change accordingly
    Header background: #f8f9f9
    Row background: #fcfcfc
    Row background: #f8f9f9
    etc.

    Please could you help med with the CSS?

    Many thanks & Best regards
    Lene

    #1407332

    Hi Lene,

    Please try to add this CSS code in Enfold > General Styling > Quick CSS:

    #top .avia-table td {
        background-color: transparent;
    }
    
    #top .avia-table tr {
        background-color: #fcfcfc;
    }
    
    #top .avia-table tr:nth-child(odd) {
        background-color: #f8f9f9;
    }

    Best regards,
    Nikko

    #1408406
    This reply has been marked as private.
    #1408449

    Hi Lene,

    Please try to add this CSS code as well:

    @media only screen and (max-width:767px) {
      #top .avia-table td {
        max-width: 140px;
        white-space: break-spaces;
      }
    
      #top .avia-table td strong {
        white-space: break-spaces;
      }
    }

    Best regards,
    Nikko

    #1408511
    This reply has been marked as private.
    #1408624

    Hi Lene,

    I apologize for my mistake, please remove the code I gave you and replace it with:

    @media only screen and (min-width:1024px) {
      .page-id-961 #av_section_3 .avia-table tr > td:nth-child(even) {
        width: 150px;
      }
    }

    Hope this helps.

    Best regards,
    Nikko

    #1408678
    This reply has been marked as private.
    #1408733

    Hi Lene,

    Please replace the code I gave with this one:

    @media only screen and (min-width:1024px) {
      .page-id-961 #av_section_3 .avia-table tr > td:nth-child(2) {
        width: 230px;
      }
    
      .page-id-961 #av_section_3 .avia-table tr > td:nth-child(4) {
        width: 130px;
      }
    }

    Hope it helps and have a great weekend :)

    Best regards,
    Nikko

    #1409015
    This reply has been marked as private.
    #1409104

    Hi Lene,

    You’re welcome :)
    As for the font size, it just adapts to default size set in Enfold > General Styling > Typography or in Advanced Styling.
    If it’s not set however it’s default is 13px which is what you have now.
    Since, it affect everything when changing the value, I think the easiest way it add this in CSS code in Quick CSS:

    .avia-table tr th,
    .avia-table tr td {
        font-size: 16px
    }

    Best regards,
    Nikko

    #1409122
    This reply has been marked as private.
    #1409205

    Hi Lene,

    I’m glad that we could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Table’ is closed to new replies.