View Single Post
Old Today, 06:33 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 56,184
Karma: 183211710
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Alt text only displays if the images are not there. Alt text is also used for a program doing TTS to read since it cannot read the images.
Since the alt text is relevant to the content, the OP seems to want a way to make it visible. Using figure/caption technique suggested by @Karellen seems like a good idea. If the formatting of the images is consistent, this could likely be done by a regex to extract the alt text and insert it as a caption.

Code:
  <figure class="center">
    <img class="glyphw40" src="../Images/do_not_print_large_jobs.png" alt="The words 'Ocean Bride&quot; very large and black, in parentheses, set in a collection of broken and mismatched letter forms. Monstrously ugly. Appropriately."/>

    <figcaption>"The words 'Ocean Bride' very large and black, in parentheses, set in a collection of broken and mismatched letter forms. Monstrously ugly. Appropriately. "</figcaption>
  </figure>
Note that adding the class center to figure centers both the image and the caption. You could wrap a <p class="center">around the <img> to center only the image as in the first attached image.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-12-04 153042.png
Views:	7
Size:	353.4 KB
ID:	227956   Click image for larger version

Name:	Screenshot 2026-12-04 153403.png
Views:	6
Size:	360.5 KB
ID:	227957  
DNSB is offline   Reply With Quote