Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1131299
    jensmith3
    Participant

    Hello,

    My site is at the temporary url of http://103.37.8.129/~thekidsa/

    I am trying to have an image in the header run the full width and have added the following into my child theme but it only fills about three-quarters of the screen.

    Are you able to assist?

    Many thanks and kind regards,

    Jenny

    header.masthead {
    background-image: url(‘http://103.37.8.129/~thekidsa/wp-content/uploads/2016/08/TKAbanner.jpg’);
    background-repeat: no-repeat;
    width: 100%;
    max-width: 100%;
    }

    #1131300
    jensmith3
    Participant
    This reply has been marked as private.
    #1131372
    Lely
    Moderator

    Hello Jenny,

    Please try using the following CSS:

    header.masthead{
        background-image: url("http://103.37.8.129/~thekidsa/wp-content/uploads/2016/08/TKAbanner.jpg");
        width: 100%;
        max-width: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

    The image you were using is only 800px in width. It’s not enough to cover the entire browser width that’s why it’s not fullwidth. 1600px width is a safe width to cover the entire browser width. Please update your image.

    Hope this helps.

    #1131395
    jensmith3
    Participant

    Thank you so much and I can see what you mean about the image size. I’ll see if I can source a larger one.

    Excellent support as always.

    Kind regards,

    Jenny

    #1131416
    Paul R
    Moderator

    You’re welcome and thank you for your kind words.

  • <script> jQuery(function($){ $("#no-reply-1131299 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>