Tagged: x
-
AuthorPosts
-
February 13, 2017 at 11:36 am #1369212
jquinn33ParticipantHi! I’m trying to get a background image to align to the top, but it is being covered by the header so the very top of the image can’t be seen as on other pages. I’ve tried several of the suggestions out here for top alignment, but none seem to work. Is there some css that might help?
Thank you always for your tremendous support out here! 🙂
February 13, 2017 at 11:38 am #1369218
jquinn33ParticipantThis reply has been marked as private.February 13, 2017 at 12:40 pm #1369314
JoaoModeratorHi There,
Your page is password protected, please provide the password in order that we can take a closer look.
Thanks
February 13, 2017 at 4:24 pm #1369605
jquinn33ParticipantThis reply has been marked as private.February 14, 2017 at 12:58 am #1370078
RupokMemberHi there,
Thanks for writing back! You can add this under Custom > CSS in the Customizer.
.backstretch { margin-top: 100px !important; }Hope this helps.
Cheers!
February 14, 2017 at 8:58 am #1370498
jquinn33ParticipantThank you, Rupok! We had tried that before and while it does bump the background image below the header and looks great, once you scroll the page and the header resizes to show just the menu, you see a gap between the top of the background image and the menu. It doesn’t seem to do that on the Cornerstone pages. Not sure if there is another solution, but if not this will suffice since we are using such a dark background against black! 🙂
February 14, 2017 at 10:13 am #1370600
RupokMemberHi there,
Thanks for writing back. As you are using dark background so the gap is not visible. Still I don’t like if you have issue on this. So here goes some additional solution.
You can add this under Custom > JavaScript in the Customizer.jQuery( function($) { $(window).on("scroll", function () { if($('.x-navbar').hasClass('x-navbar-fixed-top')) { $('.backstretch').addClass('top-margin'); }else { $('.backstretch').removeClass('top-margin'); } }).scroll(); });And then add this CSS with the existing CSS :
.backstretch.top-margin { margin-top: 50px !important; }So the main idea is to reduce the margin when you have the narrow Navbar.
Cheers!
February 14, 2017 at 5:27 pm #1371106
jquinn33ParticipantWow! You guys are simply the best! Thank you for not settling for “good enough!!” 🙂 I did add the JS and CSS (keeping the original .backstretch CSS). This didn’t seem to make a difference. Just wanted to let you know for others who find this solution useful as well! 🙂 THANK YOU again!!
February 14, 2017 at 8:31 pm #1371304
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
February 14, 2017 at 8:37 pm #1371308
jquinn33ParticipantJust in case my message was misread, just wanted to clarify that the JS and CSS didn’t work. 😉
February 15, 2017 at 2:30 am #1371541
ChristopherModeratorHi there,
The code is there and it works fine, please see the attachment.
Thanks.
February 15, 2017 at 9:32 am #1372067
jquinn33ParticipantThis reply has been marked as private.February 15, 2017 at 12:12 pm #1372291
JoaoModeratorHi There,
You sir have a good eye!
You could try changing the value of 50px for something different
.backstretch.top-margin { margin-top: 40px !important; }Let us know how it goes,
If that does not work please provide your login credentials so we can take a closer look.
Cheers
February 16, 2017 at 8:19 am #1373546
jquinn33ParticipantThis reply has been marked as private.February 16, 2017 at 7:06 pm #1374366
RadModeratorHi there,
I think it’s because these fixes only work on specific screen size, and it’s the screen we’re checking it. And in customizer, it’s narrower than what’s in the front hence if we’ll fix this in customizer’s view then it will not work on other views like on the front page, or on other devices views.
And the layout and content change its dimension depending on device screen size, the narrower the taller. And the tall content creates gap vertically. And since the background image is fixed on its position then it doesn’t respond to content changes.
How about making your image taller too and removes the above custom CSS.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1369212 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
