Page 1 of 1

Controlling caption width

PostPosted: Sun Jan 23, 2022 7:01 pm
by csquared63
I've seen some long captions (descriptions) on images that when viewed full screen end up being too wide to comfortably read. To control the width of the captions add the following to your stylesheet:

.caption {
width:100%;
max-width:900px;
margin:0 auto;
text-align:center;
}

You can adjust the max-width to fit whatever width you like, though 900px seems to be a good fit.