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 CSS help please

Discussion in 'Free Divi Community Forum' started by entertheraptor, Oct 28, 2021.

  1. entertheraptor

    entertheraptor New Member

    Hi all, needing some help from the CSS experts on here.

    The site in issue is https://translocal.com.au/

    I have been using the Divi standard header on this site and wanted to add a "get a quote" button to the menu. Pop over to the site and you will see the menu with the "get a quote" button added. I achieved the button using the following CSS added to Custom CSS in the Divi settings.

    .menu_cta {
    background-color: #ffd300;
    color: #000;
    padding: 0 !important;
    border-radius: 40px;
    }
    .menu_cta a {
    color: #000 !important;
    padding: 15px 15px 15px 15px !important;
    }

    Plus adding the custom class to the menu item.

    As you can see there might be a small issue with vertical alignment of the whole menu and button but at least the menu text and the text in the button line up.

    Recently I decided to create a new header using the theme builder and wanted to keep the same menu with the same "get a quote" button. Reason being, I like having the "get a quote" button in the expanding menu on smaller screen sizes rather than using a seperate button module.

    Problem is, when I add this menu to the theme builder the menu text alignes with the top of the button and not with the text in the button. I've tried some vertical alignment tricks in the row or column settings to no avail.

    Thanks in advance.
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Powerful Child Theme - Power up your Divi sites with tons of new functionalities & premade elements:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    You may try CSS below to adjust the position of the menu cta:
    Code:
    Log In or Sign Up to view this code.
     
  3. entertheraptor

    entertheraptor New Member

    It worked. Thank you.
     
    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More