Displaying links in gallery description.
Skipperrik
Registered Users Posts: 23 Big grins
I recently received help in displaying links in image descriptions (http://dgrin.com/showthread.php?t=242230) but would also like to display links within the gallery comments. The specific gallery is here: http://www.richardsharpephotography.com/Events/Hirshberg-Foundation/Alligator-Walk-2013. The link is to the Hirshberg Foundation. I've used the syntax <a href="site url here">text here</a> to make the name become a link but need to change the color and underline it. For the gallery comments I used this syntax:
.sm-gallery-image-container .sm-tile-info a {
color:#ccc;
text-decoration: underline;
}
.sm-gallery-image-container .sm-tile-info a:hover {
color:#fff;
}
.sm-gallery-image-container .sm-tile-keywords a {
color:#aaa;
text-decoration: none;
}
Can someone help me with the syntax for underlining and changing the color of the link within the gallery description?
Thanks.
.sm-gallery-image-container .sm-tile-info a {
color:#ccc;
text-decoration: underline;
}
.sm-gallery-image-container .sm-tile-info a:hover {
color:#fff;
}
.sm-gallery-image-container .sm-tile-keywords a {
color:#aaa;
text-decoration: none;
}
Can someone help me with the syntax for underlining and changing the color of the link within the gallery description?
Thanks.
0
Comments
You can give this a try, just replace your current html for the link:
Hirshberg Foundation
You can change the color as needed using basic names or a color number.
Thanks -Scott
<a href="http://www.pancreatic.org/" style="color:pink" target="_blank">Hirshberg Foundation</a> would open it in a new window.
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
Thanks for the info, Guy. That works great. Is there a way to underline the link?
Thanks for your concern, Denise. I don't like a barrage of popup windows opening either but if I click on a link and it opens a new tab, that doesn't bother me a bit. In fact, sometimes I find it helpful in that I don't have to search through my history to return to the original page. I think I would rather run the risk of people not liking it than having them exit my site altogether.