jonongec
-
Posts
28 -
Joined
-
Last visited
Reputation Activity
-
jonongec got a reaction from efranken in Style 7.1 Gallery Captions
https://www.jonathanong.com/
Currently I'm using this code
}
figcaption.gallery-caption.gallery-caption-grid-strips {
position: absolute;
top: 42%;
left: 50%;
bottom: 0;
background: rgba(0,0,0,0.0);
color: white;
left: 0;
text-align: center;
}
p.gallery-caption-content {
font-size: 120% !important;
}
I'm finding the captions sometimes centered, sometimes not.
Also top : 42% seems more centered than 50% for some reason.
Basically I just want the caption in the absolute center of the image.
And also if you have code for making the whole image and caption to be able to be clicked through. Currently you can't click on the caption but can click on the rest of the photo.
-
jonongec got a reaction from MehdiNih in Style 7.1 Gallery Captions
https://www.jonathanong.com/
Currently I'm using this code
}
figcaption.gallery-caption.gallery-caption-grid-strips {
position: absolute;
top: 42%;
left: 50%;
bottom: 0;
background: rgba(0,0,0,0.0);
color: white;
left: 0;
text-align: center;
}
p.gallery-caption-content {
font-size: 120% !important;
}
I'm finding the captions sometimes centered, sometimes not.
Also top : 42% seems more centered than 50% for some reason.
Basically I just want the caption in the absolute center of the image.
And also if you have code for making the whole image and caption to be able to be clicked through. Currently you can't click on the caption but can click on the rest of the photo.