[Resolved] Adjusting Margin of & shadow effect of the Main Nav

Home Forums Support [Resolved] Adjusting Margin of & shadow effect of the Main Nav

Home Forums Support Adjusting Margin of & shadow effect of the Main Nav

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #401160
    Tom

    Hey guys,

    I’m having trouble achieving a certain effect on the main-nav for one of my sites. I’m trying to create a shadow with the Main-Nav an have it halfway between the GP hook: Before Header Content and the first section of my website. I’d also like to add a shadow at the bottom of the main nav.

    Any ideas of how I could achieve this?

    Here’s an example of what I’m talking about: http://codeless.co/handel/construction/

    I followed this post exactly to build the GP hook also: https://generatepress.com/forums/topic/icons-with-text-in-header/

    I would show add a link to the website I’m building, but it’s on a local server at the moment so I’m not sure if you’ll be able to see it. If you need to see, I’ll upload it to my one of my hosting accounts.

    Thanks in advance!
    Tom

    #401386
    Leo
    Staff
    Customer Support

    Hi there,

    Yeah seeing what you have so far would be much easier for us to help πŸ™‚

    Let us know once it’s uploaded.

    Thanks!

    #401870
    Tom

    No worries! I thought that might be the case.

    Link to uploaded website: http://amplumbingworks.blakeydesigns.com/

    As mentioned, I’m trying to achieve the shadow & overlay (between the two sections) effects similar to this website’s navigation: http://codeless.co/handel/construction/

    I know the GP nav is at full width right now, but I couldn’t figure it out at a contained width – hence asking you guys!

    Cheers,
    Tom

    #402070
    Tom
    Lead Developer
    Lead Developer

    Hi Tom,

    First, set your navigation to contained.

    Then add this CSS:

    #site-navigation {
        position: relative;
        bottom: -30px;
        box-shadow: 0px 20px 20px rgba(0,0,0,0.3);
    }

    Let me know if you need more info πŸ™‚

    #402399
    Tom

    Tom, this is amazing! Thank you so much for helping me out with that. I didn’t think it was going to be possible.

    One more question, now that that’s been sorted, there’s too much space between the header and navigation. Any idea how I can reduce that?

    Once again, thanks again for such amazing support. I’m really grateful I came across GeneratePress.

    #402705
    Tom
    Lead Developer
    Lead Developer

    Ah, try this instead:

    #site-navigation {
        position: relative;
        margin-bottom: -35px;
        box-shadow: 0px 20px 20px rgba(0,0,0,0.3);
    }

    Let me know πŸ™‚

    #402874
    Tom

    All good! That worked. Thanks Tom πŸ™‚

    #402949
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

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