Tagged: x
-
AuthorPosts
-
August 14, 2016 at 9:32 pm #1131299
jensmith3ParticipantHello,
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%;
}August 14, 2016 at 9:33 pm #1131300
jensmith3ParticipantThis reply has been marked as private.August 14, 2016 at 11:47 pm #1131372
LelyModeratorHello 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.
August 15, 2016 at 12:23 am #1131395
jensmith3ParticipantThank 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
August 15, 2016 at 12:40 am #1131416
Paul RModeratorYou’re welcome and thank you for your kind words.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1131299 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
