dhopkins wrote:Yes, it's for Joomla 2.5.
The image caption style I've been looking at is from PixelLove.
<img width="128" height="128" border="0" title="description" alt="" src="/images/admin.jpg" class="caption">
.img_caption.none {
margin: 0 auto 10px;
}
div.img_caption {
background: none repeat scroll 0 0 #101010;
border-color: #222222;
}
div.img_caption {
border: 1px solid #FFFFFF;
font-size: 90%;
padding: 3px;
}
p.img_caption {
clear: both;
font-size: 90%;
margin: 0;
padding: 5px 0 3px;
text-align: center;
color:#eee;
}
span.itemImageCaption, span.itemImageCredits {
color: white; background:grey;
}
catholicservant wrote:Hi Pawel,
I'm trying to do something similar in the GameNews template (i.e. add image captions) standard articles (not using K2).
I added your CSS to my override.css file and added 'caption' to the image class, but my caption doesn't appear. Should the class be img_caption instead?
I'm building the site on my localhost, so I'm not able to provide a link – but do you have any suggestions?
Thanks!
Craig
.img_caption.none {
margin: 0 auto 10px;
}
div.img_caption {
background: none repeat scroll 0 0 #101010;
border-color: #222222;
}
div.img_caption {
border: 1px solid #FFFFFF;
font-size: 80%;
padding: 3px;
}
p.img_caption {
clear: both;
font-size: 80%;
margin: 0;
padding: 5px 0 3px;
text-align: left;
color:#eee;
}
class=caption
img class="caption"
img.caption p
<div>
<img alt="foto1" src="/images/foto1.jpg">
<h3 class="caption_h3"><a href="#">Image Caption</a></h3>
</div>
.caption_h3 {
background: none repeat scroll 0 0 rgba(18, 47, 91, 0.77);
color: #FFFFFF;
display: block;
float: left;
font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
font-size: 1.3em;
font-weight: normal;
height: 60px;
line-height: 1.5em;
margin-top: -70px;
max-height: 60px;
opacity: 1;
padding-left: 5px;
position: absolute;
text-align: left;
text-rendering: optimizelegibility;
transition: background-color 0.4s ease-in 0s;
width: 100%;
z-index: 100;
}