Mobile logo Centered

Discussion in 'Infoway WordPress Theme' started by syt5zb, Jun 2, 2013.

  1. syt5zb

    syt5zb New Member

    Joined:
    Apr 28, 2013
    Messages:
    12
    Likes Received:
    0
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,
    Paste the following code in your Custom CSS
    (Appearance -> Theme Options -> Styling Options -> Custom CSS)
    Code:
    @media only screen and (max-width: 767px) and (min-width: 480px)
    {
    .header .logo img {
    margin-left: 150px;
    }
    }
    @media only screen and (max-width: 480px){
    .header .logo img {
    margin-left: 85px;
    }
    }
    
    You can adjust the values of margin-left as per your requirement.
    This will solve your issue.
     
  3. syt5zb

    syt5zb New Member

    Joined:
    Apr 28, 2013
    Messages:
    12
    Likes Received:
    0
    Thanks, but this did not work? I want the website to look the same as on a pc as is does on a mobile device
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
  5. syt5zb

    syt5zb New Member

    Joined:
    Apr 28, 2013
    Messages:
    12
    Likes Received:
    0
    I want to center the logo and align left the social media icons.
    file://localhost/Users/sakiataylor/Desktop/photo.PNG
    Thanks so much for your help!
     
  6. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,
    Paste the following code in your Custom CSS
    (Appearance -> Theme Options -> Styling Options -> Custom CSS)
    Code:
    .header .logo {
    margin-left: 322px;
    }
    @media only screen and (max-width: 960px) and (min-width: 768px){
    .header .logo {
    margin-left: 200px;
    }
    }
     
    @media only screen and (max-width: 767px) and (min-width: 480px){
    .header .logo {
    margin-left: 0px;
    text-align: center;
    }
    .topinfobar .socialicon {
    text-align: left;
    margin-left: 20px;
    }
    }
     
    @media only screen and (max-width: 480px){
    .header .logo {
    margin-left: 0px;
    text-align: center;
    }
    .topinfobar .socialicon {
    text-align: left;
    margin-left: 20px;
    }
    }
    You can adjust these values of margin-left according to your requirement.
    This will solve your issue.
     

Share This Page