canyonthemes - Canyon Themes

Home Forums Quality Construction template post problem Reply To: template post problem

#10051

canyonthemes
Keymaster

Hello @yasop,
For WordPress gallery Please add following css. I hope this will help you.

.gallery {

margin-bottom: 1.5em;

}
.gallery-item {

display: inline-block;

text-align: center;

vertical-align: top;

width: 100%;

}
.gallery-columns-2 .gallery-item {
max-width: 50%;
}
.gallery-columns-3 .gallery-item {
max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
max-width: 25%;
}
.gallery-columns-5 .gallery-item {
max-width: 20%;
}
.gallery-columns-6 .gallery-item {
max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
max-width: 11.11%;
}
.gallery-caption {
display: block;
}

Regards
Canyon Themes
——————————–

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close