-
AuthorPosts
-
May 30, 2023 at 9:03 pm #1409056
Hello,
I am using the clip-path css style on a column. I would also like that column to have a drop shadow. From what I have read, you cannot use the drop-shadow style with clip-path, you need to use the filter css style instead. To do that, you need to have a parent class and a child class to achieve this. Is this possible to do? Right now, in the column, I have clippers assigned as the CSS class; I have clippers-wrap assigned in the Lockable CSS class. My code is below:
.clippers-wrap {
filter: drop-shadow(0 0 10px rgba(0, 0, 0, .3)) !important;
margin: 0 4% 0 0
}.clippers {
background: #f2f2f2;
margin: 15px 0;
-webkit-clip-path: polygon(0 0,100% 0,100% 90%,90% 100%,0 100%);
clip-path: polygon(0 0,100% 0,100% 90%,90% 100%,0 100%);
}I have also included a link to the site that I’m working on as well. Thank you!
May 31, 2023 at 5:36 am #1409090Hey bbertuzzi7,
Thank you for the inquiry.
Please take note that the Lockable CSS value is specifically applied to Custom Element Templates. This means that the columns themselves only contain the “clippers” class name at the moment. To achieve the desired result, you should apply the “clippers-wrap” class name to the column itself and manually create a container inside the column using a Text Block. This container should have the class name “clippers”.
Best regards,
IsmaelMay 31, 2023 at 11:48 am #1409130Thank you Ismael! When you say manually create a container, can you please be specific?
June 1, 2023 at 3:49 am #1409232Hi,
You will have to add something like this in a text or code block.
<div class="clippers">content here</div>
The class name “clippers-wrap” will have to be applied to the column containing this text block.
Best regards,
IsmaelJune 1, 2023 at 11:20 am #1409260Thank you. When I do that and add it into the column, it doesn’t give the column a drop shadow, it gives all of the content within the column a drop shadow. I only need the column to have a drop shadow, like this site: https://tecex.com/
June 2, 2023 at 7:24 am #1409358Hi,
Sorry for the confusion. You should apply the “clippers” class name to the column, then add a text block with the “clippers-wrap” container. You may need to place all content in this single text block.
Best regards,
IsmaelJune 2, 2023 at 11:11 pm #1409447Ok, I will try that and report back. Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.