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 Center logo in Theme Builder mobile menu

Discussion in 'Free Divi Community Forum' started by estyle18, Dec 13, 2024.

  1. estyle18

    estyle18 New Member

    Hello, I'd like to center the logo in a mobile menu that I created with Theme Builder. I tried this code, which works on the default Divi mobile menu, but it doesn't work on the Theme Builder menu.

    @Media screen and (max-width: 980px) {
    .logo_container {
    text-align: center !important;
    }
    }

    Website: https://andrewesensten.net
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  2. Divi Booster

    Divi Booster Divi Expert

    Hi estyle18,

    Try adding this CSS instead:

    Code:
    Log In or Sign Up to view this code.
    It works by creating an invisible spacing element on the left of the header which takes up the same amount of space on the left as the mobile menu button takes up on the right, leading to the logo being centered between the two components.
     
  3. estyle18

    estyle18 New Member

    Perfect, thank you!
     
    1. PRO MEMBER PERKS Divi Powerful Child Theme - Power up your Divi sites with tons of new functionalities & premade elements:Learn More
  4. Divi Booster

    Divi Booster Divi Expert

    You're welcome!