[Resolved] shadow header, blog/post padding

Home Forums Support [Resolved] shadow header, blog/post padding

Home Forums Support shadow header, blog/post padding

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #338951
    Norman

    Hi team gp,

    I was wondering if it possible to have a shadow below the header? I have static + sticky enabled, and when I’m at the top of the page, there is no separation between the header and page (https://www.fairfieldcollege.nl/blog). I’m not sure if there ever was a shadow/line, but if there was, I accidentally removed it.

    Also, I’d like to change the padding of the blog page and of all the posts. Right now they are all full width. I’m sort of learning to use css, but for this one I really can’t seem to find the right element to address.

    Thanks:)

    EDIT: one more question, why does my site often load like this: http://imgur.com/a/NwYqE ?

    #339175
    Leo
    Staff
    Customer Support

    Hi there,

    – Try this CSS for shadow:

    .main-navigation {
        -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
        box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    }

    Use this site to fine tune it: http://www.cssmatic.com/box-shadow

    – The blog page does have padding? This is what I see: https://s29.postimg.org/72bv90k87/2017-06-26_0759.png
    Are you wanting different container width than the rest of the site?

    – For site not loading correctly, can you try #1 on this page?
    https://docs.generatepress.com/article/debugging-tips/

    #339241
    Norman

    The .main-navigation doesn’t work..

    And yeah, I’d like the blog page to be less wide. Around 800-900ish.

    Thanks for the debugging tips, I will check them out:)

    #339246
    Leo
    Staff
    Customer Support

    Hmm I’m not seeing the CSS being added.

    Any caching plugin or maybe syntax errors in previous CSS?

    This should work for blog container size:

    .blog .site.grid-container {
        max-width: 900px;
    }
    #339250
    Norman

    I already removed the css! I’ll put it back now

    #339253
    Norman

    it works now.. My bad. Thanks!

    #339255
    Leo
    Staff
    Customer Support

    No problem!

    #339267
    Norman

    Leo, one more question:

    I tried to change the body background color using this css:

    .body {
    background-color: rgba(0,0,0,0.02) !important;
    }

    it doesn’t work though. I’m trying to make the blog white surrounded by grey.

    Is the css wrong?

    #339275
    Leo
    Staff
    Customer Support

    Try this:

    .blog, .archive {
        background-color: rgba(0,0,0,0.02);
    }

    Make sure it’s added in the global CSS editor as WordPress ignores all metabox on index pages (blog, archive)

    #339392
    Norman

    I’m sorry to keep on bothering. Somehow I broke my site. The layout is pretty messed up, desktop and mobile.

    EDIT: I don’t know what happened. I disabled some css and now it’s okay.

    I just wanted a rgba(0,0,0,0.2) body background

    #339396
    Leo
    Staff
    Customer Support
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.