Jump to content

Cannot resize opaque accent box behind text for mobile site

Recommended Posts

Site URL: https://ferret-bird-3rl2.squarespace.com

Hello forum friends ~

Trying to adjust the size of the opaque accent box on the mobile site so that the text is a bit tighter to the edges, as it is in the desktop pic.

Used this for desktop:
 

/* DESKTOP */

#block-daf805861a202b50ee14
.code-block
{
  padding-top: 2.5vh !important;
  padding-bottom: 2.5vh !important;
}
.code-block .sqs-block-content 
{
  padding-top: 2.5vh !important;
  padding-bottom: 2.5vh !important;
}


And this for mobile:
 

/* MOBILE */

@media screen and (max-width: 640px){#block-daf805861a202b50ee14 
.code-block .sqs-block-content 
{
  padding-left: 2.0vw !important;
  padding-right: 2.0vw !important;
}}


Tried various iterations and combos as well. No go.

SITE:  https://ferret-bird-3rl2.squarespace.com
ACCESS:  blahblahblah

Thank you for any tips! 

 

ACCENT BOX PADDING_DESKTOP.PNG

ACCENT BOX PADDING_MOBILE.PNG

Link to comment

 

Yes, so that it fits more tightly in the space.

On the mobile site, there is a lot of space around the text and the lighter colored box behind it. I'm attempting to delete all the space from the lighter colored box behind the text (that portion in the yellow rectangles. 

No matter what I do, I can't seem to make that box any smaller on the mobile site.

THANK YOU 💗

ACCENT BOX PADDING_MOBILE_MOD.png

Link to comment

Try this code

@media screen and (max-width:767px) {
#block-daf805861a202b50ee14 H7 {
    background-color: rgba(48,42,34,.1);
    display: block;
}
div#block-daf805861a202b50ee14 {
    background-color: unset;
}
}

(In the future, you should use h1 to h6. H7 doesn't exist)

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

Try this code

@media screen and (max-width:767px) {
#block-daf805861a202b50ee14 H7 {
    background-color: rgba(48,42,34,.1);
    display: block;
}
div#block-daf805861a202b50ee14 {
    background-color: unset;
}
}

(In the future, you should use h1 to h6. H7 doesn't exist)

 

I'd like to do a Vulcan mind-meld with you.

You have literally saved my first job from being a complete disaster. 

Was only partial disaster.

Now I can't get the site title to be all on one line. It'll never end... LOL

 

(I actually created up to h9 - all different styles - with code blocks and CSS. You'd be proud.)

Link to comment
On 1/15/2022 at 8:49 AM, Poppyseeds said:

 

I'd like to do a Vulcan mind-meld with you.

You have literally saved my first job from being a complete disaster. 

Was only partial disaster.

Now I can't get the site title to be all on one line. It'll never end... LOL

 

(I actually created up to h9 - all different styles - with code blocks and CSS. You'd be proud.)

I see site title one line here, both desktop/mobile

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.