Link to home
Start Free TrialLog in
Avatar of David Schure
David Schure

asked on

Making a Logo larger in Mobile Portrait Mode

I have  alogo that looks fine and is big enough to read in all screen sizes except in portrait mode on a cell phone.  How can I adjust the logo size to be bigger for the mobile portrait mode? Thank you.
<div class="logo"><a href="index.php"><img src="resources/images/Logos/Lowsun2.png" alt="Logo"></a></div>

Open in new window

https://arise.plus

Avatar of David Favor
David Favor
Flag of United States of America image

Looks like your logo + menu items use font resizing based on screen sizes.

Likely Fix: Change the CSS class of your logo to be separate from your menu items, then use different @media... screen size breaks... to adjust your logo font.
Avatar of David Schure
David Schure

ASKER

Thank you.  Tried this. Nothing changed.
.logo{
    max-width: 200px;
    width: 15%;
}
.logo img{
    width: 100%;
}


@media (max-width: 365px) {
.logo{
    max-width: 200px;
    width: 15%;
}
.logo img{
    width: 100%;
}
}

Open in new window

How can I adjust the logo size to be bigger for the mobile portrait mode?  
To further extend David's suggestion, you can set the specific size under orientation: portrait mode.
@media (orientation: portrait) 
{  
  //your csss
}

Open in new window

https://developer.mozilla.org/en-US/docs/Web/CSS/@media/orientation
Thank you.  This is all very interesting.  Tried it, nothing changed.  I'm doing soething wrong!
@media (orientation: portrait) {
.logo{
    max-width: 200px;
    width: 15%;
}
.logo img{
    width: 100%;
}
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of David H.H.Lee
David H.H.Lee
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you! It works!