Sauceboss770 Posted January 1 Share Posted January 1 Password is website I want to make a checkerboard design on my services page. I want all the pictures the same size and no gaps, as you see the bottom picture is wider than the top two how do i fix it so there's no gaps and its even thx Link to comment
tuanphan Posted January 2 Share Posted January 2 https://teal-copper-6ed7.squarespace.com/services Hi, I tried creating a quick demo. Is this what you want? https://summaryblock2.squarespace.com/checkboard?noredirect pass: abc AlexSan 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Sauceboss770 Posted January 2 Author Share Posted January 2 yes are all the boxes even? how can i do that? Link to comment
tuanphan Posted January 4 Share Posted January 4 Here I added 6 sections, then use code to make them to 2 rows If you still want to use this approach, I will give all steps Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Solution tuanphan Posted January 8 Solution Share Posted January 8 (edited) On 1/4/2024 at 10:11 PM, Sauceboss770 said: ya please ill try it out First, add 6 sections Edit 6 sections > Add a Block > Choose Code > Paste this line <div class="checkboard-item"></div> Next, add this code to Website Tools (under Not Linked) > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('.code-block .checkboard-item').closest('section.page-section').addClass('checkboard-design'); $('section.checkboard-design').wrapAll('<section class="checkboard-design-parent"></section>'); }); </script> <style> @media screen and (min-width: 768px) { .checkboard { display: flex; flex-wrap: wrap; } .checkboard section { width: 33.3333% !important; } } </style> if it doesn't work or doesn't work properly, you can share link to page where you apply the code, I can check it again easier Edited January 8 by tuanphan Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment