Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Center and Shrink Logo for Mobile/Tablets
New Landing › How can we help? › Themeforest Theme Support › Dante › Center and Shrink Logo for Mobile/Tablets
- This topic has 8 replies, 4 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Dante
-
July 7, 2015 at 7:07 pm #192524
Hi there!
Thanks for all of your help regarding my previous issues. I have launched the site Balaboutiquefl.com thanks to your team’s CSS coding. However, after I launched, I noticed that the logo does not shrink to adjust to a smaller screen and it sits off to the right.Can you help me center the logo on mobile/tablet versions? I would also like to shrink it a bit. Thanks!!
Attachments:
You must be logged in to view attached files.July 8, 2015 at 7:58 am #192630Hi,
Please use this custom css code:-@media only screen and (max-width: 479px) { #logo a:first-child{ margin-left:30% !important; } #logo a img{ width:auto !important; } } @media only screen and (max-width: 1024px) { #logo a:first-child{ margin-left:42% !important; } #logo a img{ width:auto !important; } }
Thanks
MohammadJuly 8, 2015 at 2:32 pm #192822Hi Mohammad,
Unfortunately, this custom CSS did not solve the issue. It actually moved the logo over to the right and stretched it vertically. Can you assist? I am attaching a screenshot of what happened.Attachments:
You must be logged in to view attached files.July 9, 2015 at 6:15 am #192995Hi,
I have resolved the issue so please check it now.
Thanks
MohammadJuly 9, 2015 at 2:36 pm #193267Hi Mohammed,
Thank you for centering the logo. Unfortunately, as the logo was centered, it lost its integrity and is way too stretched vertically. Can you help me? My client does not like how the logo looks right now.Thanks again for your help!
I have attached a screen shot.
Attachments:
You must be logged in to view attached files.July 10, 2015 at 1:34 pm #193642Hi,
Please check it now after clear the cache.
Thanks
MohammadJuly 10, 2015 at 1:35 pm #193643Hi,
You will need to change the min-height to auto:
#logo img { height: 250px; min-height: auto!important; }
The height has to be relative to width to retain its quality.
Thanks.
August 30, 2015 at 11:47 pm #208740Here’s my approach in case you want to consider an alternative for the next release:
@media only screen and (max-width: 767px) { #logo a:first-child{ padding-top: 20px !important; } #logo img { max-height: 52px !important; /* adjust accordingly */ } } @media only screen and (max-width: 991px) { #logo a:first-child{ width: 100%; } #logo img { margin-left: auto; margin-right: auto; width: auto !important; } #logo a.mobile-menu-show { position: fixed; top: 5px; right: 5px; } }
Please let me know if you see any flaws. Thanks!
September 1, 2015 at 10:31 am #209078Hi,
Great stuff, that looks good for me on all screen sizes and it works nicely with your logo setup.
Thanks for getting back to us,
David. -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.