Tagged: x
-
AuthorPosts
-
August 4, 2016 at 9:06 am #1117306
krealinersParticipantHi, I’m having trouble with double scrollbar appearing when I set heigh: 100% on html and body elements. I need to have this value because I would set every site row to height: 100% to fit the screen.
Can you help me resolve this problem it makes me mad!
Thank you
August 4, 2016 at 11:45 am #1117498
RahulModeratorHey There,
Please add the following code in Customize -> Custom -> CSS :
body { overflow: hidden; }Hope that helps.
August 5, 2016 at 3:01 am #1118585
krealinersParticipantThis reply has been marked as private.August 5, 2016 at 4:06 am #1118628
Paul RModeratorHi,
Kindly remove the css code you have added then add this in Custom > Edit Global Javascript
jQuery(function($) { $(window).resize(function() { $( ".page-id-160 .x-content-band" ).each(function( index ) { $(this).css('height', window.innerHeight+'px'); }); }).resize(); });Hope that helps.
August 8, 2016 at 2:20 am #1121692
krealinersParticipantHi, thank you very much, this works fine.
If I would to fit only a certain percentage of browser window, how can I adapt the above script?
Thanks
August 8, 2016 at 2:32 am #1121704
Rue NelModeratorHello There,
If you want to control the height of the window, you can update the code and use this instead:
jQuery(function($) { $(window).resize(function() { $( ".page-id-160 .x-content-band" ).each(function( index ) { $(this).css('height', '100vh'); }); }).resize(); });Hope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1117306 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
