Site logo

[Support request] How to make a Box Shadow?

Home Forums Support [Support request] How to make a Box Shadow?

Home Forums Support How to make a Box Shadow?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1864850
    Marius

    Hello,
    how can i make a shadow around the container? Also around the container under the content container.

    #1864985
    David
    Staff
    Customer Support

    Hi there,

    try this CSS:

    .separate-containers .inside-article,
    .paging-navigation {
        box-shadow: 0 3px 15px 2px rgba(0,0,0,0.3);
    }

    And this site is handy for generating the box-shadow property:

    https://cssgenerator.org/box-shadow-css-generator.html

    #1865014
    Marius

    Thanks David,

    Can you tell me the shadow code from Marketer Site? I have tried to find that in the source code from the demo site, but can not find it.

    #1865023
    David
    Staff
    Customer Support

    This is the code Marketer uses:

    .inside-article, .sidebar .widget, .comments-area {
        border-right: 2px solid rgba(0,0,0,.07);
        border-bottom: 2px solid rgba(0,0,0,.07);
        box-shadow: 0 0 10px rgba(232,234,237,.5);
    }

    So if i got the correct selctors in my CSS then you would do:

    .separate-containers .inside-article,
    .paging-navigation,
    .page-header {
        border-right: 2px solid rgba(0,0,0,.07);
        border-bottom: 2px solid rgba(0,0,0,.07);
        box-shadow: 0 0 10px rgba(232,234,237,.5);
    }
    #1865051
    Marius

    Perfect, thanks a lot!

    #1865217
    Marius

    Now I have see, that the category Heading is also in such a Box, but this has no shadow. Can we give this a shadow too?

    #1865335
    David
    Staff
    Customer Support

    I updated the CSS above to include the .page-header class

    #1865831
    Marius

    Perfect, thanks!

    #1865997
    David
    Staff
    Customer Support

    You’re welcome

    #1879137
    Philippe

    The site you gave for generating a box shadow is great. Though i couldn’t make it working on my website…
    Is it on your plans to add a shadow box controler soon ? Could be really handy ! 🙂

    I tried to add this to my containers Valeurs/Mission/Vision, but i see nothing Happening …

    box-shadow: -4px 10px 20px -6px rgba(0,0,0,0.75);
    -webkit-box-shadow: -4px 10px 20px -6px rgba(0,0,0,0.75);
    -moz-box-shadow: -4px 10px 20px -6px rgba(0,0,0,0.75);
    

    https://libermouv.com/main/a-propos-de-nous/

    #1879213
    David
    Staff
    Customer Support

    Hi there,

    add this CSS to your site:

    .has-shadow {
        box-shadow: -4px 10px 20px -6px rgba(0,0,0,0.75);
        -webkit-box-shadow: -4px 10px 20px -6px rgba(0,0,0,0.75);
        -moz-box-shadow: -4px 10px 20px -6px rgba(0,0,0,0.75);
    }

    then edit the Grid, select the first column container, and i Advances > Additional CSS Class(es) add: has-shadow
    Then do the same for each of the other columns.

    #1879567
    Philippe

    Wow ! It works great ! I didn’t catch i had to put in my child theme the CSS. Thanks so much David !!!

    #1880258
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.