Adding descriptions to the shadowbox image

I am trying to add a description to an image. I know you can add titles but I'm looking for a description and title. Can anyone tell me the best way to accomplish this, or if it's even possible?

thanks in advance

Answers


You need to use the title attribute with some HTML like below:

<a href="http://lorempixel.com/200/200/" rel="shadowbox;height=200;width=200" title="<b>My Image</b><span>Desc</span>">My Image</a>​

And use the CSS to make it work!

#sb-title, #sb-title-inner {height: 3em;}
#sb-title-inner b {display: block; font-size: 1.2em;}
#sb-title-inner span {display: block;}​

Check out the Fiddle here. Hope it helps! :)


Need Your Help

Create and Respond to a Hyperlink within a NSTableView Text Cell

objective-c macos swift nstableview nscell

I have a program that has a NSTableView populated with files to be uploaded. Once the file is sent, the Text Cell with the file's name gets a hyperlink placed into it (the array data is given an

convert cygwin bash into tcsh

cygwin

how can I be able to convert my cygwin bash into a c Shell.