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.