Board index PBase HTML and Style Sheets Controlling caption width

HTML and Style Sheets

Controlling caption width

Customize your galleries.
csquared63
 
Posts: 58

Controlling caption width

Post Sun Jan 23, 2022 7:01 pm


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.

Board index PBase HTML and Style Sheets Controlling caption width

Who is online

Users browsing this forum: No registered users and 2 guests

cron