Jump to content

Resizing Images/Responsive Design for Mobile Optimization

Recommended Posts

Posted

Site URL: https://www.coachcourtney.net/

Hi, please help.

 

Is there a way for these pictures to "NOT" somehow hanging?

These photos keep on floating as soon as my screen resizes from width 945px to smaller widths.

I have similar pictures like these across the web pages 😞 

1. homepage https://www.coachcourtney.net/

image.thumb.png.7885824868295fc223ab9ed902d655e4.png

image.png

image.thumb.png.c14af9cb513dba7727a39ef35718d90f.png

2. About me https://www.coachcourtney.net/about

image.thumb.png.85b878bb586be952165c0c4ae42e390d.png

image.thumb.png.926991cedeea5151e7964642f0ffd086.png

3. Training packages https://www.coachcourtney.net/trainingpackages

image.thumb.png.82b73a55637fc0456bd1ae475516a4e3.pngimage.thumb.png.1bd6d0a1face474ad5034fa4b04eca72.png

 

I also think that the padding on top is not responsive. I'm not sure why.

 

I use the following code for the desktop previously:

//Home PAGE//
//CC Picture at Home PAGE//
div#block-yui_3_17_2_1_1631304561541_3905 {
    padding-bottom: 0;
}
  


[data-section-id="6128352549b74866b4b70d81"] {
    min-height: 10vh !important;
}
[data-section-id="6128352549b74866b4b70d81"] .content-wrapper {
    padding-top: 30px !important;
    padding-bottom: 0px !important;
}

//removing padding bottom at about me picture//
div#block-yui_3_17_2_1_1631167739251_2488 {
    padding-bottom: 0;
}


[data-section-id="6139a4c760236d737ef81c08"] {
    min-height: 10vh !important;
}
[data-section-id="6139a4c760236d737ef81c08"] .content-wrapper {
    padding-top: 80px !important;
    padding-bottom: 0px !important;
}

//removing padding bottom at Training Packages Page//
//CC Picture at Training Packages Page//
div#block-yui_3_17_2_1_1631303218959_4742 {
    padding-bottom: 0;
}
//STRENGTH and SOUL IMAGE LEFT//
div#block-yui_3_17_2_1_1631140439839_4960 {
    padding-bottom: 0;
  padding-top: 0px;
  
}

[data-section-id="61393a6b321ef9720209c260"] {
    min-height: 10vh !important;
}
[data-section-id="61393a6b321ef9720209c260"] .content-wrapper {
    padding-top: 30px !important;
    padding-bottom: 0px !important;
}

//removing padding bottom at TRIBE Retreat Page//
//CC Picture at TRIBE Retreat Page//
div#block-yui_3_17_2_1_1631220058643_14982 {
    padding-bottom: 0;
}
//ABOUT THE RETREAT at TRIBE Retreat Page//
div#block-yui_3_17_2_1_1631220058643_13789 {
    padding-bottom: 0;
  padding-top: 40px;
  
}

[data-section-id="6139abe393764a70eda3bbe8"] {
    min-height: 10vh !important;
}
[data-section-id="6139abe393764a70eda3bbe8"] .content-wrapper {
    padding-top: 20px !important;
    padding-bottom: 0px !important;
}
 

 

Also, as my screen reaches somewhere from 1205px width, there's a white space on the right side of the screen. It only disappears after the menu burger icon becomes visible.image.thumb.png.502af1e2a2fad71e73d1a3e86bf0a4b6.png

So sorry for bombarding you with these problems.. I'm not really good at this.

Thank you so much.

 

  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply
Posted
On 9/23/2021 at 12:12 AM, shandyyym said:

Yes please @tuanphan

Add to Design > Custom CSS

/* Mobile */
@media screen and (max-width:640px) {
/* Fix white bar on right of screen */
html, body {
	overflow-x: hidden;
}
/* homepage image */
div#block-yui_3_17_2_1_1631304561541_3905 {
    padding-bottom: 0px !important;
}
/* about image */
div#block-yui_3_17_2_1_1631167739251_2488 {
    padding-bottom: 0px !important;
}
}

 

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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.