Jump to content

Centering gallery-reel-item for mobile view

Recommended Posts

Site URL: https://kyuno.de/home-2

Hello everyone,

 

I centered all the icons in the Gallery Reel with this css Code for the desktop view:

section[data-section-id="62627dec9367b93bf998045c"]

.gallery-reel-item {
  margin-top: 3.5vw;
 
}

Now I also want the icons centered in the mobile version. 

 

the URL is www.kyuno.de/home-2

Password: kyuno

 

hope someone can help me 🙂

 

Squarespace-Frage-IMG_3162.jpg

Link to comment
On 5/5/2022 at 9:33 PM, waiki said:

yes vertically 🙂

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
.gallery-reel {
    height: 25vh !important;
}
[data-section-id="62627dec9367b93bf998045c"] {
    min-height: unset !important;
    height: 25vh !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!)

Link to comment

Hi Tuanphan,

I added the CSS Code. Unfortunately the icons aren't vertically centered and a small white bar appears every time when the icons move to the left.

Did I do something wrong with your provided code?

Best greetings Waiki

Link to comment
On 5/9/2022 at 2:31 PM, waiki said:

Hi Tuanphan,

I added the CSS Code. Unfortunately the icons aren't vertically centered and a small white bar appears every time when the icons move to the left.

Did I do something wrong with your provided code?

Best greetings Waiki

Remove code I sent & try this new code

@media screen and (max-width:767px) {
section[data-section-id="62627dec9367b93bf998045c"] .gallery-reel-item {
    margin-top: 3.5vw;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !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!)

Link to comment
  • 1 year later...

This worked well, but for some reason it eliminated all the custom fonts on my site (installed with CSS).

Also, the nav arrows beneath the gallery look different and I can't seem to change them with CSS. There is a grey square background and the arrow color changed from orange to black.

the site is cloisterwatch.com and I'm looking at the gallery on the home page.

Any ideas? Thanks!

Link to comment
On 2/21/2024 at 9:10 PM, interlopr said:

This worked well, but for some reason it eliminated all the custom fonts on my site (installed with CSS).

Also, the nav arrows beneath the gallery look different and I can't seem to change them with CSS. There is a grey square background and the arrow color changed from orange to black.

the site is cloisterwatch.com and I'm looking at the gallery on the home page.

Any ideas? Thanks!

#1. Maybe you added code to wrong position, or wrap font code in this code. Try move the code to bottom of CSS box, and make sure no symbol appears under code I sent.

If problem still appears, let me know, I will check carefully.

#2. It is fine to me

image.png.51aac616abad2a36e42b125ae000ec86.png

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.