Jump to content

Reducing padding on mobile just for Images

Recommended Posts

Site URL: http://www.berlinheadshots.com

Hi Everyone! 

Trying to take away (or at least reduce below 17) the padding around a gallery on a mobile site only. Goal is for it to look more like a banner, and in the process giving a greater space for the images sit in. Attached is how it currently looks!

Template is Nueva. 

Any tips welcome!

 

ps also does anyone know ifs there's code to stop the words from hyphenating?!!! super annoying!

Screenshot 2021-05-07 at 16.00.01.png

Link to comment
  • Replies 12
  • Views 508
  • Created
  • Last Reply

Top Posters In This Topic

On 5/7/2021 at 11:01 PM, Hamish999 said:

I tried this, Didn't work

<style>
#page, #content {
 padding: 0 !important;
 max-width: 100% !important;
}
.sqs-block.image-block {
 padding-top: 0
}
</style>

Add to Design > Custom CSS

/* gallery padding mobile */
@media screen and (max-width:640px) {
section#home>div {
    padding-bottom: 0;
}
section#intro>div {
    padding-top: 0;
}
}

 

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
On 5/10/2021 at 7:34 PM, Hamish999 said:

Basically i want it like to look like this..


 

 

 

 

 

 

Add this new code

/* gallery padding mobile */
@media screen and (max-width:640px) {
section#home>div {
    padding-bottom: 0;
}
section#intro>div {
    padding-top: 0;
}
div#block-27d90621bc6ab511fe1e {
    padding-top: 0 !important;
}

div#block-27d90621bc6ab511fe1e h2 br {
    display: none;
}
}

 

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

Hello, 

Thank you for your ongoing help but it's still not working. The only code I have now in the custom css in the design section is below but on mobile it looks the same!

/* gallery padding mobile */
@media screen and (max-width:640px) {
section#home>div {
    padding-bottom: 0;
}
section#intro>div {
    padding-top: 0;
}
div#block-27d90621bc6ab511fe1e {
    padding-top: 0 !important;
}

div#block-27d90621bc6ab511fe1e h2 br {
    display: none;
}
}
Link to comment

Add to Settings > Advanced > Code Injection > Header

<style>
  /* gallery padding mobile */
@media screen and (max-width:640px) {
section#home>div {
    padding-bottom: 0;
}
section#intro>div {
    padding-top: 0;
}
div#block-27d90621bc6ab511fe1e {
    padding-top: 0 !important;
}

div#block-27d90621bc6ab511fe1e h2 br {
    display: none;
}
}
</style>

 

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
2 hours ago, tuanphan said:

Add to Settings > Advanced > Code Injection > Header


<style>
  /* gallery padding mobile */
@media screen and (max-width:640px) {
section#home>div {
    padding-bottom: 0;
}
section#intro>div {
    padding-top: 0;
}
div#block-27d90621bc6ab511fe1e {
    padding-top: 0 !important;
}

div#block-27d90621bc6ab511fe1e h2 br {
    display: none;
}
}
</style>

 

Hey, still not working! Is it potentially the blocks id? do i need to change that?

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.