4,554
edits
No edit summary |
No edit summary |
||
Line 279: | Line 279: | ||
.image-container { | .image-container { | ||
position: relative; | position: relative; | ||
} | } | ||
Line 293: | Line 292: | ||
top: 50%; | top: 50%; | ||
left: 50%; | left: 50%; | ||
transform: translate(-50%, -50%); | transform: translate(-50%, -50%); /* Centering the caption */ | ||
color: black; | color: black; | ||
background-color: transparent | background-color: rgba(255, 255, 255, 0.7); /* Slightly transparent background for better visibility */ | ||
padding: 10px; | padding: 10px; | ||
text-align: center; | text-align: center; | ||
font-size: 16pt; | font-size: 16pt; | ||
font-style: italic; | |||
max-width: 90%; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||