Logo image to fit on mobile screens?

Discussion in 'Andrina WordPress Theme' started by chrisr, Apr 1, 2015.

Thread Status:
Not open for further replies.
  1. chrisr

    chrisr Member

    Joined:
    Mar 27, 2012
    Messages:
    38
    Likes Received:
    0
    I have used the Adrina theme you will see the logo "STOP SMOKING FOR LIFE" at the top of the page of this website http://www.testingenviroment.com/stopsmoking/ I added some CSS to make the image larger on the pc (see below) the issue is on different mobile devices sometimes it is to wide what CSS do I add so it fits in the mobile screen?

    .header .logo img {
    width: auto;
    height: auto;
    padding-top: 20px;
    }
     
  2. sameerwalkar

    sameerwalkar Guest

    Hi,

    Apply the below code:

    Code:
    @media only screen and (max-width: 480px){
    .header .logo img{
    width: 100% !important;
    }
    }
    Regards,
    Sameer
     
  3. chrisr

    chrisr Member

    Joined:
    Mar 27, 2012
    Messages:
    38
    Likes Received:
    0
    perfect thank you worked a dream
     
Thread Status:
Not open for further replies.

Share This Page