1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, 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

Shrinking menu issue

Discussion in 'Free Divi Community Forum' started by Book It On Sight, Sep 5, 2020.

  1. Book It On Sight

    Book It On Sight New Member

    Hello,

    Is anyone able to help me with my shrinking menu? I like how it works on desktop, but don't like how the logo shrinks on mobile/table, but not the actual header.

    I either want to stop the logo shrinking on mobile/tablet OR ideally make the actual header shrink, as well as the logo. You can view the website here: http://gatisv8.sg-host.com/

    The code that I have used for shrinking is this:

    /*set the transition for the spacing shrinking action*/
    .pa-header .et_pb_row {
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    }

    /*set the background color of the fixed header when scrolling*/
    .pa-fixed-header .et_pb_row {
    padding: 0px 0;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    }
    /*set the transition for the logo shrinking action*/
    .pa-header .et_pb_menu__logo img {
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    }

    /*change the logo size when the header shrinks*/
    .pa-fixed-header .et_pb_menu__logo img {
    max-width: 80%;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    }
    /*set the transition for the font size shrinking action*/
    .pa-header .et_pb_menu ul li a {
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    }

    /*change the menu font size when the header shrinks*/
    .pa-fixed-header .et_pb_menu ul li a {
    font-size: 16px!important;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    }


    Thanks
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade slide in bar design for your Divi site without using any plugins:View Demo
  2. Problemizer.com

    Problemizer.com Divi Expert

    There is too much bad CSS written so it is hard to debug without spending much time. First you need to remove all padding-top you added on the header, then look up max height added on the image, that may be the issue.
     
  3. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Divi Ultimate Child Theme - Tons of premade layouts & section designs + functionalities for your Divi site:Learn More