Help Centering Content Please!

Solved

Help Centering Content Please!

ManKaveStore
Explorer
61 7 8

So my page's loading speed was very slow, and I assume it's because I had a lot of content set to 100vw; (which even the default settings for the slideshow was set for 120vw / 100vw..) So I wanted to add a max-width: 2400px for all my content that stretches 100vw of the screen, even when zoomed out, and have it centered. Here are some pictures showing the search bar and my slideshow images that need to be centered aligned. I tried auto margins, justifying content, etc. maybe I was applying it wrong.

 

I have the sections circled in the pictures below that I am specifically trying to fix (although there are more sections to fix).

 

Website: https://mankave.store

 

ManKaveStore_0-1718997596808.png

If any code is needed please ask.

 

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
6827 1629 2007

This is an accepted solution.

Hi @ManKaveStore 

This is my ss in your store. 

Made4uoRibe_0-1719002191139.png

Im not sure what do you like to align. Also, use % for the width so the image will be responsive to smaller screen. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
6827 1629 2007

This is an accepted solution.

Hi @ManKaveStore 

This is my ss in your store. 

Made4uoRibe_0-1719002191139.png

Im not sure what do you like to align. Also, use % for the width so the image will be responsive to smaller screen. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
ManKaveStore
Explorer
61 7 8

Thanks for the reply, I actually figured it out. I wanted to keep the width: 100vw; settings, and just limit the images to max-width: 2400px;

 

Everything already looks fine for desktop and mobile, my concern was when holding Ctrl + scrolling on the mousewheel down to zoom out, these images were stretching across the whole screen no matter how far I zoomed out - which I assume is why I was getting bad PageSpeed scores.

 

I'm going to mark this as an accepted solution; however, the fix was:

margin: 0 auto;

Made4uo-Ribe
Shopify Partner
6827 1629 2007

I can't say anything more, if that is what you like. if yo uare familiar with the code. Im sure you are aware of this. 

Made4uoRibe_0-1719003196985.png

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.