Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Place caption outside image in jssor?

Tags:

jssor

I would like to add a caption outside the image tag in the jssor Plugin

<div>
  <img u="image" src="bilder/bild2.jpg" />
  <div class="caption" u="caption" ><p>Caption text</p></div>
</div>

So that the caption wouldn't overlay the image - but be placed under it. (How) is that possible?

like image 343
Urs Avatar asked May 26 '14 14:05

Urs


1 Answers

please use inline styles of 'position, top, left, width, height' for caption.

<div>
  <img u="image" src="bilder/bild2.jpg" />
  <div class="caption" style="position: absolute; top: ...px; left: ...px; width: ...px; height: ...px;" u="caption" ><p>Caption text</p></div>
</div>
like image 158
jssor Avatar answered Oct 21 '22 10:10

jssor