Logo alignment

We are trying to figure out how to get our logo to left align with our copy at all widths. When the browser width is reduced (especially at probably tablet mode), the logo jumps massively to the right and looks strange. how do we keep the left alignment fixed on the content?


Layout Style: Transparent

Options: Full Width checked

Comments

  • Hello,

    That is because of the Custom CSS you are using.

    When you delete the Code responsible for this, the logo on tablet view will move back to the left.

    If you want to keep this Custom CSS Code, then you should close it in media queries, and exclude the tablet view.

    https://www.w3schools.com/cssref/css3_pr_mediaquery.asp


    Thanks

  • Thanks... below is my css. What code would i use to have the logo left padding in the tablet be 10 instead of 50? But I'd like to keep it 50 for the desktop.



    #Top_bar #logo { padding: 25px 20px 10px 50px !important; }


    #logo .logo-mobile{

    padding-top: 15px!important;

    }



    .post-meta .author-date .post-author { display: none !important; }

    .post-meta .author-date .date .label { display: none !important; }

    .post-meta .category, .post-meta .mata-tags { display: none !important; }



    @media screen and (max-width:767px){

      .post-related{

       padding-bottom: 26px!important;

      }

    }


    @media screen and (max-width:767px){

      h4{

       font-size: 30px!important;

     line-height: 40px!important;


      }

    }

  • Please, remove the first line:

    #Top_bar #logo { padding: 25px 20px 10px 50px !important; }
    

    and replace it, with the following code:

    @media screen and (min-width: 960px){
      #Top_bar #logo { 
         padding: 25px 0px 10px 50px !important; 
      }
    }
    @media screen and (max-width:960px) and (min-width: 767px){
      #Top_bar #logo{
         padding: 25px 0px 10px 10px !important; 
      }
    }
    

    Thanks

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.