Image-caption plugin and texts links
-
I am using the image-caption plugin to create captions for my images. I have been using it for a long time and like it’s simplicity of use as it turns the title tag texts into the caption automatically.
However, the image-caption plugin doesn’t suport the use of links in the caption so I am trying create a work around to get a separate line of texts overlayed on the image so that I can give credit to the photogrpaher and link to the license.
The followng works nicely if I don’t use a title tag but as soon as I add the title tag the credit text gets shoved to the left of the image and is no longer overlaid on the image.
Of course I need to use the title tag to get image-caption plugin to create the caption as normal.
So I thought someone might be able to help me tweak the css to get it working.
Here is the html I am using:
`<img class=”alignright” src=”https://www.domain.com.com/images/image.jpg” title=”Image title”/>
<p class=”img-cap”>Photo by: Joe Schmo License</p>`And here is the CSS I created for the img-cap style:
p.img-cap {
margin-top:-1.5em;
font-size: .75em;
font-style:italic;
text-align:right;
padding:2px 0 0;
}Any help would be greatly appreicated.
Thanks
*post edit: I notice the code for the links has not come out right above, just understand that the “Joe Schmoe” and “License” are just standard href links.
- The topic ‘Image-caption plugin and texts links’ is closed to new replies.