Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 24Mar 24 Community Expert Any chance to get a caption paragraph styling in this menu? (or to put it another way: any kind of “alternative“ paragraph, which could be used for something like captions)For educational articles, I use captions all the time and much more than the 6 levels of headlines. The default caption styling wouldn’t matter much, as long as it is clearly separated from the default text (through size/color/styling …) and can be targeted with CSS. I used to do that with custom buttons, but since that doesn’t exist anymore, a native function would be nice and the only way to have a consistent appearance with global styling. Trying to pick a combination of the editor styling options (like manually assigning an alternative color) sounds bad in comparison. Two examples (where the caption class is at least separated by style (italic) and color. And the existence of a CSS class allows for even more like spacing and an icon:
March 25Mar 25 some image captionyou can do it quite it easily with icon, italic and color in editor 🤔
March 25Mar 25 Author Community Expert some image captionyou can do it quite it easily with icon, italic and color in editor 🤔Sure. Just as one can create headlines through picking a larger font size, but that’s not a good solution compared to the “h tags“, which can by styled globally at any point (including margin changes, which are not available in the editor). In the same sense, I am asking for a proper solution for captions.
March 25Mar 25 some image captionyou can do it quite it easily with icon, italic and color in editor 🤔This approach lacks semantic HTML since it doesn't use the <figure> tag to associate the caption meaningfully with the image. It’s a bad practice because it reduces accessibility and proper document structure.Moreover, you can't edit the caption class to modify all caption styles, making maintenance cumbersome or impossible. Edited March 25Mar 25 by David N.