Project grid separator
-
wrote on Feb 6, 2025, 11:07 PM last edited by
Is there an easy way that I just didn't see to separate thumbnails within the project grid with lines?!
Like this:
(thumbs then can be centered within the box of course.)
I'm just thinking of reusing the grid again in a "smaller" version like 4 Columns too ... (short sketch to give you an idea)Cheers
Chris -
Global Moderatorwrote on Feb 10, 2025, 7:50 PM last edited by arminunruh Feb 10, 2025, 3:07 PM
-
Global Moderatorwrote on Feb 10, 2025, 7:53 PM last edited by arminunruh Feb 10, 2025, 2:55 PM
and set layout type to "middle aligned"
-
Enter this css in "lay options" -> "custom css & html" -> "custom css for desktop"
.thumb-collection .thumbnail-wrap{ padding: 2vw; height: 40vw; border-right: 1px solid black; border-bottom: 1px solid black; box-sizing: border-box; } .thumbs-collection-region .thumbnail-wrap{ display: inline-flex; align-items: center; } .thumb-collection .thumb{ width: 100%; } /*for every 4th element, dont show border right*/ .thumb-collection .thumbnail-wrap:nth-child(4n){ border-right: none; } /*for last 4 elements, dont show border bottom. you probably have to change this*/ .thumb-collection .thumbnail-wrap:nth-last-child(-n+4) { border-bottom: none; }
this works for when your thumbnailgrid is set to use 4 columns
you need to change
border-right: 1px solid black;
border-bottom: 1px solid black;to
border-right: 1px solid white;
border-bottom: 1px solid white;you can change the numbers for these values:
padding: 2vw;
height: 40vw; -
-
wrote on Feb 11, 2025, 12:45 PM last edited by
thanksssssss!!
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it