Tagged: x
-
AuthorPosts
-
August 13, 2016 at 12:35 am #1129634
yhshin1020ParticipantHey,
I have a page set up, and I managed to create a content band that will automatically be the size of the full page (maximum height and width of the screen) using the css
`content{
height: 100vh;
}However, on mobile, it looks all messed up.
How do i fix this problem?
Also, I want to know how i can make the header decrease in size on mobile /tablet devices.
Thanks!
August 13, 2016 at 12:39 am #1129638
yhshin1020ParticipantThis reply has been marked as private.August 13, 2016 at 12:40 am #1129641
yhshin1020ParticipantThis reply has been marked as private.August 13, 2016 at 1:06 am #1129656
yhshin1020ParticipantThis reply has been marked as private.August 13, 2016 at 3:22 am #1129755
RadModeratorHi there,
You may try adding padding by percentage on your content band’s style attribute. It’s not advisable to add fix height on a content by, but padding as percentage will add height as well and still responsive.
Eg. padding: 20% 0 20% 0;
20% top and bottom.
Thanks!
August 13, 2016 at 5:39 am #1129813
yhshin1020ParticipantThis reply has been marked as private.August 13, 2016 at 5:53 am #1129819
ChristopherModeratorHi there,
I recommend you to not use fixed height and let content bands resize automatically base on content length.
However if you want to set fixed height, try this code :
@media (max-width:767px){ .content1 { height: 200vh; } }Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1129634 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
