0 top-padding for top

Hello Muffin team,
could you please help with next point...
I'm trying to implement scheme when top menu will have similar logo size and padding as sticky menu on scroll.
I wrote this custom CSS:
/* Top Bar In Static Mode*/
#Top_bar .menu_wrapper { margin-top: 12px !important; }
#Top_bar { height:55px; }
#Top_bar #logo img {min-height: 45px;max-height: 45px;}
#Top_bar #logo {height:: 50px;}
#Top_bar .menu > li > a { padding: 0 !important; }
#Top_bar #logo, .header-fixed #Top_bar #logo, .header-plain #Top_bar #logo, .header-transparent #Top_bar #logo { padding: 0 !important; }
#Top_bar .logo { margin: 0 !important; }

/* Top Bar In Sticky Mode*/
#Top_bar.is-sticky { height:55px; }
#Top_bar.is-sticky #logo img {min-height: 45px;max-height: 45px;padding-top: 4px; padding-bottom: 3px;}
#Top_bar.is-sticky #logo {height:: 50px;}

but still logo image in initial mode has some kind of +5..+10 px on top padding. I assume ther's some kind of container on top?
Also wanted to ask - maybe ther's a way how to make logo image same size withour min/max-height?

Regards,
Nikolay

Comments

  • Hi,

    please show us on screenshot what exactly you want to do + send us link to page where want do this.
  • edited September 2016
    Hello,
    unfortunately I can not provide you link. web-site not released yet for external network.
    Here is screenshot:
    http://tinypic.com/r/e00fub/9
    It is visible that padding for static menu has several pixels more and shifted a little bit down comparing to sticky mode menu where I was able to put logo in the middle.
    My goal is to have completely same menus in both modes - same size of logo image and position padding to top edge.
    Here is last version of custom CSS:
    /*---------------------------------------- TOP-MENU -----------------------------------------------*/
    /* Top Bar In Static Mode*/
    #Top_bar {height:55px !important;}
    #Top_bar .logo { margin: 0 !important; }
    #Top_bar .menu > li > a { padding: 0 !important; }
    #Top_bar .menu_wrapper { margin-top: 0 !important; }
    #Top_bar #logo, .header-fixed #Top_bar #logo, .header-plain #Top_bar #logo, .header-transparent #Top_bar #logo { padding: 0 !important; }
    #Top_bar #logo img {min-height: 45px !important;max-height: 45px !important;}

    /* Top Bar In Sticky Mode*/
    #Top_bar.is-sticky { height:55px; }
    #Top_bar.is-sticky #logo img {min-height: 45px;max-height: 45px;padding-top: 4px; padding-bottom: 3px;}
    #Top_bar.is-sticky #logo {height:: 50px;}

    Regards,
    Nikolay

  • I have also tried now with Layout-Style:"Fixed" and no sticky menu.
    And with this CSS:
    /* Top Bar In Static Mode*/
    #Top_bar {height:50px !important;}
    #Top_bar .menu > li > a { padding: 0 !important; }
    #Top_bar .menu_wrapper { margin-top: 0 !important; }
    #Top_bar #logo, .header-fixed #Top_bar #logo, .header-plain #Top_bar #logo, .header-transparent #Top_bar #logo { padding: 0 !important; }

    Still there's space before logo image:
    http://i66.tinypic.com/w6wawk.png

    Regards,
    Nikolay


  • Send us link when your site would be online then because url is necessary.
  • I have resolved it by myself. After check in code inspector I found that ther're 2 parameters which should be decreased to size of logo.

    #Top_bar #logo, .header-fixed #Top_bar #logo, .header-plain #Top_bar #logo, .header-transparent #Top_bar #logo {
    padding: 0 !important;
    height: 46px;
    line-height: 46px;
    }

    now ther's no additional space between edge and logo image.
    Thank you anyway.

    Regards,
    Nikolay
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.