This topic has 1 reply, 2 voices, and was last updated 11 years by JohnDoe.

  • Author
  • #6340
     arrigons
    Participant

    Hi there!
    you gave me good hints in this post
    https://archived.seventhqueen.com/forums/topic/how-to-hide-backgroung-image

    Now I have a new request that comes to the need I have to use a background image with this dimensions 2521X779. I’m using the following quick CSS to manage it:

    .home .header-bg {
    background-color: #0076A3;
    background-image: url(“wp-content/uploads/home.png”);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    }

    The problem I have is that the backgrounf image is stretch in height. Is there any solution?

    Many thanks
    Andrea

    #6342
     JohnDoe
    Participant

    Try :

    .home .header-bg {
    background-color: #0076A3;
    background-image: url(“wp-content/uploads/home.png”);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    }

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?