- This topic has 13 replies, 4 voices, and was last updated 1 year, 6 months ago by
Leo.
-
AuthorPosts
-
November 30, 2020 at 2:29 pm #1559326
chris
Hi I’m using containers to build the site content in, and was wondering if i can add a shadow effect where they join. Sort of like all containers under the top one appear as they are below the next content container at the bottom if that makes sense?
November 30, 2020 at 5:59 pm #1559519Elvin
StaffCustomer SupportHi,
Can you link us to the site in question? So we could have an idea of which is the best way to approach this.
You can add the site details on the Private Information text field.
A wise man once said:
"Have you cleared your cache?"December 2, 2020 at 12:43 pm #1564480chris
Done.
December 2, 2020 at 6:49 pm #1564847Elvin
StaffCustomer SupportCan you specify which containers you’d like to have shadows?
If its all of the gb containers, you can try adding CSS of something like this:
.gb-container { -webkit-box-shadow: 10px 10px 28px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 28px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 28px 0px rgba(0,0,0,0.25); }
A wise man once said:
"Have you cleared your cache?"December 6, 2020 at 4:32 am #1569124chris
Hi something like that works yeah, just if you try it yourself on the site it seems to do all the boxes, and on someof my images where there are abit of white it shows and makes the site look silly. Any suggestions id like it just on the home page under the picture where the white starts. Thanks
December 6, 2020 at 5:37 am #1569184David
StaffCustomer SupportHi there,
select the Container Block(s) you want to apply the shadow to, go to Settings > Advanced –> Additional CSS Class(es) and add:
box-shadow
then change the CSS to this:.gb-container.box-shadow { -webkit-box-shadow: 10px 10px 28px 0px rgba(0,0,0,0.75); -moz-box-shadow: 10px 10px 28px 0px rgba(0,0,0,0.75); box-shadow: 10px 10px 28px 0px rgba(0,0,0,0.25); }
You can now apply
box-shadow
to any container you require it on.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 10, 2020 at 9:14 am #1574618chris
Thanks
Is there a way to make the shadow only appear at the bottom of the block? Many thanks.
December 10, 2020 at 10:39 am #1574714Leo
StaffCustomer SupportYou can use this to tweak the shadow CSS to be whatever you want:
https://www.cssmatic.com/box-shadowDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 12, 2020 at 6:18 am #1577320chris
Link doesnt work for me?
December 12, 2020 at 7:39 am #1577519David
StaffCustomer SupportTry this generator:
https://cssgenerator.org/box-shadow-css-generator.html
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 12, 2020 at 9:12 am #1577618chris
Thanks David,
Thanks for that, however im struggling with that editor. Im aiming to stop the shadow displaying at the sides and top, sorry to be a pain.
December 12, 2020 at 11:54 am #1577801Leo
StaffCustomer SupportI believe setting the horizontal shadow length to 0 should work.
This might also help:
https://stackoverflow.com/questions/4561097/css-box-shadow-bottom-onlyDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/December 12, 2020 at 12:44 pm #1577838chris
Awesome thanks worked.
December 12, 2020 at 12:45 pm #1577840Leo
StaffCustomer SupportNo problem 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.