Tagged: x
-
AuthorPosts
-
September 9, 2016 at 1:20 am #1167582
AdvasaParticipantHello
I have used a 4 column block grid to create a table. It looks great on desktop however when it shows on mobile or tablet (portrait) it gets all muddled up due to it reducing the about of columns.
How can I keep the block grid looking the same so it just shrinks down in sized rather then reducing the amount of columns?Thanks
Justin
September 9, 2016 at 1:21 am #1167584
AdvasaParticipantThis reply has been marked as private.September 9, 2016 at 3:29 am #1167705
Paul RModeratorHi Justin,
Please provide us your username as well.
Thanks
September 10, 2016 at 8:13 pm #1169687
AdvasaParticipantThis reply has been marked as private.September 11, 2016 at 3:45 am #1169924
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> CSS :
@media (max-width: 979px){ .x-block-grid.four-up>li { width: 18.25% !IMPORTANT; float: left !important; clear: none !important; font-size: 15px; margin: 5% 5% 0 0 !important; } li.x-block-grid-item .x-btn { font-size: 12px; padding: 5px; } }Hope that helps.
September 11, 2016 at 11:33 pm #1170746
AdvasaParticipantHi
Thanks for the response, it’s getting there 🙂
The block grid is now in 4 columns on mobile however the whole block grid is now hovering to the left and the block grid items aren’t in the same order as they are on desktop. Please see attachment.
Thanks
Justin
September 12, 2016 at 12:41 am #1170794
RadModeratorHi there,
Please add this as well,
@media (max-width: 979px){ .x-block-grid.four-up>li:nth-child(4n) { clear: right !important; } .x-block-grid.four-up>li:nth-child(4n+1) { clear: left !important; } }Cheers!
September 12, 2016 at 3:13 am #1170976
AdvasaParticipantHello
Thank you, it is working now 🙂
For anyone else interested in achieving this result the 4th column seemed to be 3rd the second last so I adjusted the first bit of code to the following:
@media (max-width: 979px){ .x-block-grid.four-up>li { width: 20% !IMPORTANT; float: left !important; clear: none !important; font-size: 15px; margin: 5% 5% 0 0 !important; } li.x-block-grid-item .x-btn { font-size: 12px; padding: 5px; } }Cheers
Justin
September 12, 2016 at 3:24 am #1170994
ChristopherModeratorThanks for sharing.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1167582 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
