Left Align Caption When Lightbox Is Open #718
manek43509
started this conversation in
General
Replies: 2 comments 2 replies
-
Hi, Here is one possible solution: .fancybox__caption {
margin-right: auto;
} https://jsfiddle.net/c7gh48q9/ Another option would be to make it 100% wide: .fancybox__caption {
width: 100%;
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you! However, this now aligns the caption outside of the left edge of the image, which I don't think looks as good as having the caption in line with the left side of the image... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to align the caption which displays when the lightbox opens and the image displays large. I have added CSS using the attribute
.fancybox__caption
and I know this is the right class to use because other changes I have made (ie. font size and weight) display correctly, but.fancybox__caption { text-align: left; }
does nothing. Any ideas why this is?Beta Was this translation helpful? Give feedback.
All reactions