WordPress.org

Ready to get started?Download WordPress

Forums

Vantage
[resolved] Background image in header (5 posts)

  1. fabsalsa
    Member
    Posted 6 months ago #

    Dear all,

    I added an image to the header via the custom menu of the pro version but the image is x-repeated. How to customize the css such that the image is simply stretched to the screen width with no-repeat?

    Thanks

  2. Jose
    Member
    Posted 6 months ago #

    Try this

    header#masthead {background:no-repeat center center; background-size: cover;
    }

    Add it to your css in child theme or in theme's custom css.

    Jose

  3. fabsalsa
    Member
    Posted 6 months ago #

    It worked!! Many thanks

  4. Jose
    Member
    Posted 6 months ago #

    awesome! no problem :)

    mark this as closed

    jose

  5. fabsalsa
    Member
    Posted 6 months ago #

    closed :o)

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.