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

    Hi guys,

    I’m trying to change the background color of the website, on certain grid rows, using the custom CSS name “Posters”. But its not working :/

    I want the default to remain the same (#e8e8e8), but where I apply this CSS below, it changes.

    @media only screen and (min-width: 1000px) {
    .Posters {
    max-width: 1600px;
    margin: 0 auto;
    background-color: #e8e8e8;
    }
    }

    Thanks!
    Chris

    #823668

    Hey Chris,

    Can you post a link to a page in your site where we can see the Posters class applied? so we can figure out why it’s not working.

    Best regards,
    Nikko

    #824129

    Hi Nikko,

    Apologies!

    Here’s the page:

    And specifically here’s the section:
    https://ibb.co/fcjvaQ

    Its at the bottom of the page with the two posters.

    Thanks!

    #824325

    Hi Chris,

    Thanks, I have checked it and it works however there is also background color applied to the 1/2 columns which is on top of the Posters class section though I could see both uses same color #e8e8e8, I think you can use this to apply the background color:

    #top .Posters .av_one_half {
      background-color: #e8e8e8 !important;
    }

    Hope this helps :)

    Best regards,
    Nikko

    #824365

    Hey Nikko,

    I tried that but no luck :/

    • This reply was modified 7 years, 4 months ago by ccyran.
    #824461

    Hi Chris,

    Sorry I made a mistake, the problem is appearing on larger screens, I think you just need to change from your .Posters code the

    max-width: 1600px;

    to:

    max-width: 100%;

    Hope this helps :)

    Best regards,
    Nikko

    #824657

    Hey Nikko,

    But does this still keep the two posters from expanding past 1600px? I used that CSS originally becuase I didn’t like how big those two images got on larger screens.

    Thanks!
    Chris

    #824870

    Hi Chris,

    Can you try adding this css code:

    #top .Posters .av_one_half .av_one_full .avia-image-container {
        max-width: 800px;
    }
    
    #top .Posters .av_one_half.avia-builder-el-first .av_one_full .avia-image-container {
        margin-right: 0;
    }
    
    #top .Posters .av_one_half.avia-builder-el-last .av_one_full .avia-image-container {
        margin-left: 0;
    }

    Hope this helps :)

    Best regards,
    Nikko

    #824875

    Hey that worked!

    But how did it work? Haha

    Would this same CSS work if I did 3 images side by side?

    #824934

    Hi,

    No it wouldn’t work on 3 1/3 column, you would need to add another code for that. basically I just set maximum width of the image to 1/2 of the 1600px (800px) then set the left image to align right and right image to align left so it’s still centered :)

    Best regards,
    Nikko

    #825248

    Ah I see,

    Thank you Nikko!!!!!

    #826826

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Change body background color through CSS’ is closed to new replies.