Jump to content

Help with changing size and location of block id image on mobile site

Recommended Posts

Hi, on the mobile version of the website, please help with my title "Hello Wellness" I can't change the location to the left therefore half of it is cut off and it's too big on the mobile version of the site. I have a block id for the image but can't seem to find the right codes to edit the image. 

I'm currently using these codes:

header {display:none}
/* CSS FOR TABLET AND MOBILE */
@mobile:  ~"only screen and (max-width: 640px)";
@tablet:  ~"only screen and (min-width: 641px) and (max-width: 949px)";

/* CSS FOR TABLET */
@media @tablet {
/* Insert Code for Tablet Below This Line*/

/* Insert Code for Tablet Above This Line */
}

/* CSS FOR MOBILE */
@media @mobile {
/* Insert Code for Mobile Below This Line*/
#block-yui_3_17_2_1_1692076346143_8211 { 
  display:block; 
  left: 0;
  width: 0;
  margin:0 auto;
}
/* Insert Code for Mobile Above This Line */
}
html, body {
  overflow-x: hidden;
}
body {
  position: relative
}

Link to comment
  • Replies 3
  • Views 959
  • Created
  • Last Reply

Top Posters In This Topic

18 minutes ago, Anastasia29 said:

Hi, on the mobile version of the website, please help with my title "Hello Wellness" I can't change the location to the left therefore half of it is cut off and it's too big on the mobile version of the site. I have a block id for the image but can't seem to find the right codes to edit the image. 

I'm currently using these codes:

header {display:none}
/* CSS FOR TABLET AND MOBILE */
@mobile:  ~"only screen and (max-width: 640px)";
@tablet:  ~"only screen and (min-width: 641px) and (max-width: 949px)";

/* CSS FOR TABLET */
@media @tablet {
/* Insert Code for Tablet Below This Line*/

/* Insert Code for Tablet Above This Line */
}

/* CSS FOR MOBILE */
@media @mobile {
/* Insert Code for Mobile Below This Line*/
#block-yui_3_17_2_1_1692076346143_8211 { 
  display:block; 
  left: 0;
  width: 0;
  margin:0 auto;
}
/* Insert Code for Mobile Above This Line */
}
html, body {
  overflow-x: hidden;
}
body {
  position: relative
}

What is the site URL?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
On 8/27/2023 at 2:33 PM, Anastasia29 said:

You can use this CSS to resize it on mobile

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1692076346143_8211 svg {
    width: 30vw !important;
    margin: 0 auto !important;
}
div#block-yui_3_17_2_1_1692076346143_8211 {
    text-align: center;
}
}

 

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.