Tagged: x
-
AuthorPosts
-
July 6, 2016 at 5:33 am #1074509
nyleleviParticipantHi X, I wonder if you can help me with this
I have a block grid on this page: http://nyle.medialam.com/sectors/
What I would like to do with it is have all of the images touching each other without any gaps and have the whole grid centered on the screen
I am attaching a screenshot of what I am trying to achieve:
http://i.imgur.com/UD76Pzn.jpgThanks
July 6, 2016 at 6:24 am #1074567
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> CSS :
li.x-block-grid-item img { width: 100%; margin: 0; }Hope that helps.
July 6, 2016 at 8:08 am #1074706
nyleleviParticipantHi There
That code has closed all the gaps nicely so thanks for that but unfortuneately it still isnt centering on the page.
Any ideas for that?
Thanks
July 6, 2016 at 8:26 am #1074729
ChristopherModeratorHi there,
Please add this code :
.x-block-grid.three-up>li { width: 33%; }To resize wrapper, add following code as well :
ul.x-block-grid.three-up { width: 80%; margin: 0 auto; }Hope it helps.
July 6, 2016 at 9:57 am #1074880
nyleleviParticipantGreat thats working! Thanks for your help
July 6, 2016 at 10:32 am #1074937
nyleleviParticipantSorry although the issue has been fixed for this page, it has caused a block grid on another page to act differently. Is there a way for me to target this specific grid so that the code only applies to this one?
Thanks
July 6, 2016 at 10:44 am #1074959
JoaoModeratorHi There,
You can add .page-id-362 in front of every code above provided. It should look like this:
.page-id-362 .x-block-grid.three-up>li { width: 33%; } .page-id-362 li.x-block-grid-item img { width: 100%; margin: 0; } .page-id-362 ul.x-block-grid.three-up { width: 80%; margin: 0 auto; }Hope it helps
Joao
July 6, 2016 at 10:49 am #1074971
nyleleviParticipantThanks again!
July 6, 2016 at 1:35 pm #1075187
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1074509 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
