x

centering captions on slideshow

Is there any way to center text captions on slideshows?

The text viewable beneath photos displayed seems left aligned.

523 Views
Message 1 of 3
Report
2 REPLIES 2

@PENicholson 

Try wrapping your caption like this:

<center>your caption goes here</center>

Hope this helps, Gary

507 Views
Message 4 of 3
Report

I wouldn't use the center html tag to center text. That tag is not valid for html 5. Browsers will likely continue to support deprecated tags like this but it isn't good practice to use them. Instead, use either a css class or inline css with the text-align attribute set to "center". In the case of a slider caption that, for example contains an h1 header and a paragraph, you could use a div wrapper with the center alignment. Example code below:

<div style="text-align:center;">
<h1>This is my caption's slideshow header</h1>
<p>Here is some further explanatory caption text about this slide</p>
</div>
490 Views
Message 4 of 3
Report