Help Centering Content Please!

Solved

Help Centering Content Please!

ManKaveStore
Explorer
66 7 11

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
10038 2387 3014

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
10038 2387 3014

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
ManKaveStore
Explorer
66 7 11

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
10038 2387 3014

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 are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.