Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to customize styles of thumbnail? #761

Open
bsor-dev opened this issue Sep 7, 2023 · 2 comments
Open

How to customize styles of thumbnail? #761

bsor-dev opened this issue Sep 7, 2023 · 2 comments

Comments

@bsor-dev
Copy link

bsor-dev commented Sep 7, 2023

I would like to change border color and spacing of thumbnail but it seems like there is no default way to do it

@patrickgratao
Copy link

Hi @bsor-dev,

You can change border-color and spacing (gap) using css classes.

To add spaces between thumbnails you can use this class:

.image-gallery-thumbnails .image-gallery-thumbnails-container

display: flex;
justify-content: center;
gap: 1rem;

To change border color you can use this class:

.image-gallery-thumbnail.active, .image-gallery-thumbnail:focus

Hope be helpfull.

@la-salman
Copy link

@patrickgratao I've positioned the thumbnails on the left, and now I want to vertically center align them. I'm using Tailwind CSS. How can I achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants