Jump to content

Reducing size of footer logo

Recommended Posts

  • Susana_SQSP changed the title to Reducing size of footer logo
  • 10 months later...

Hi Tuanphan. I've come across several replies of yours, showing different CSS code injection meant to reduce the size of a footer logo when displaying on mobile devices . I'm wondering if you can help me to understand which elements of the code are the parts that impact the logo size so that I can play with it. I'm noticing that 50% isn't enough of a reduction for my logo to show up properly when viewed on a phone. 

Here's the code I've been using...

@media screen and (max-width:640px) {
div#block-#block-yui_3_17_2_1_1639858540498_6652 img {
    width: 20% !important;
    height: auto !important;
    transform: translateX(-50%);
    left: 50% !important;
}
div#block-#block-yui_3_17_2_1_1639858540498_6652 .image-block-wrapper {
    padding-bottom: 50% !important;
}
}

Link to comment
15 hours ago, 1x4x9 said:

Hi Tuanphan. I've come across several replies of yours, showing different CSS code injection meant to reduce the size of a footer logo when displaying on mobile devices . I'm wondering if you can help me to understand which elements of the code are the parts that impact the logo size so that I can play with it. I'm noticing that 50% isn't enough of a reduction for my logo to show up properly when viewed on a phone. 

Here's the code I've been using...

@media screen and (max-width:640px) {
div#block-#block-yui_3_17_2_1_1639858540498_6652 img {
    width: 20% !important;
    height: auto !important;
    transform: translateX(-50%);
    left: 50% !important;
}
div#block-#block-yui_3_17_2_1_1639858540498_6652 .image-block-wrapper {
    padding-bottom: 50% !important;
}
}

Remove it & try this code

@media screen and (max-width:640px) {
#block-yui_3_17_2_1_1639858540498_6652{
    width: 50% !important;
}
}

If it doesn't work, please share link to your site

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.