Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1240701

    kbosland
    Participant

    Hello,
    I would like a background image on my flipcard. I am following other threads but it is not working for me.

    .flip1 {
    background-image: URL(/wp-content/uploads/2016/11/greencar.jpg);
    background-size: contain;
    }

    .x-face-outer.front {
    background-color: transparent!important;
    border-color: transparent!important;
    }

    #1240702

    kbosland
    Participant

    carbonclinic.com is the url

    #1240934

    Rupok
    Member

    Hi there,

    It seems you have added the ID flip1 but using this as class on CSS. Let’s move flip1 from ID to Class field. Also you should use the absolute path of the image.

    Cheers!

    #1242330

    kbosland
    Participant

    great, thanks, it is repeating slightly, how would I stop that?

    #1242426

    Darshana
    Moderator

    Hi there,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1243594

    kbosland
    Participant
    This reply has been marked as private.
    #1243643

    Paul R
    Moderator

    Hi,

    I am sorry but I am not really sure what you mean by “repeating slightly”

    This is how it works on my end – http://screencast.com/t/Sfki37pT

    If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do, we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thanks

    #1246793

    kbosland
    Participant

    Do you see how the image of the car starts again, and the image of the fuel does the same? I just want one centered image

    #1246807

    Paul R
    Moderator

    Hi,

    Sorry about that.

    To prevent it from repeating, you can add background-repeat:no-repeat;

    eg.

    
    .flip1 {
        background-image: URL(/wp-content/uploads/2016/11/greencar.jpg);
        background-size: contain;
        background-repeat: no-repeat;
    }
    

    Hope that helps.

    #1246819

    kbosland
    Participant

    Thanks, that fixed that part, but the image shrunk in width.

    #1246836

    Paul R
    Moderator

    Hi,

    You can change background size to cover.

    eg.

    
    .flip1 {
        background-image: URL(/wp-content/uploads/2016/11/greencar.jpg);
        background-size: cover;
        background-repeat: no-repeat;
    }
    

    Hope that helps.

    #1246956

    kbosland
    Participant

    Thanks Paul, that is much better.

    I added for the .flip2 .x-face-text {
    display: none;
    }

    When this happened, it made the card shrink in height. How do I maintain the size of it to a nice rectangle?

    #1246995

    kbosland
    Participant

    I have added min height and some padding and it looks much better, except when I flip the card and then it shows the picture behind it and is too short.

    Thanks,
    Kathy

    #1247006

    Paul R
    Moderator

    Hi Kathy,

    You can add this under Custom > Edit Global CSS in the Customizer.

    
    .flip1 .x-card-inner,
    .flip2 .x-card-inner,
    .flip3 .x-card-inner {
        min-height:220px;
    }
    

    Hope that helps.