1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Add right vertical divider at end of top nav menu?

Discussion in 'Free Divi Community Forum' started by chris r, Aug 8, 2019.

  1. chris r

    chris r Member

    Hi,

    I thought this would be simple, but turns out it isn't.

    I have a horizontal top nav WordPress menu in Divi and at the end of it floating right is the search magnifying glass. Screenshot attached. What I'm trying to do is add a vertical bar 1px wide that extends higher than the height of each word in the menu and is between the last menu item ("Careers") and the magnifying glass. So it's supposed to divide the menu visually from the search icon.

    Per the screenshot, I added an :after pseudo class just as a test on the menu items that didn't seem to work at all. This put the dividers underneath the menu items per the screenshot. Also the height isn't as tall as I'd like.

    Can this be done? Screen Shot 2019-08-08 at 11.04.10 PM.png
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gallery carousel design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    You can adjust the pseudo element by adding:
    Code:
    Log In or Sign Up to view this code.
    Also you can specify the height as well:
    Code:
    Log In or Sign Up to view this code.
     
  3. chris r

    chris r Member

    Thanks a lot, I have it positioned with one issue:

    I'm noticing that the Divi top nav height changes when you scroll down the page. At the top of the page, I have it aligned ok, then when I scroll down the nav height decreases in an animated effect and the position of the vertical bar gets misaligned and moves up.

    Two screenshots attached.

    Anything I can do to correct?
    Screen Shot 2019-08-09 at 1.02.59 AM.png Screen Shot 2019-08-09 at 1.02.46 AM.png
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade horizontal timeline design for your Divi site without using any plugins:View Demo
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    For your CSS, just add .et-fixed-header to target the pseudo CSS when the nav height changes.
     
  5. chris r

    chris r Member

    Thanks very much, you saved my day. :)
     
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now