1
I need to put "subtitles" underneath each of the images. How it is in html:
<div id="pic-0">
<a href="/ModuloPublico/AssociacaoCooperativa/Index/101">
<img src="url da imagem" alt="Licor de Maracujá com Mousse" width="302" height="192" widht="100%">
</a>
<a href="/ModuloPublico/AssociacaoCooperativa/Index/101">
<img src="url da imagem" alt="Licor de maracuja concentrado" width="302" height="192" widht="100%">
</a>
<a class="previous" href="#pic-3" onclick="bgenScroll();"><</a>
<a class="next" href="#pic-1" onclick="bgenScroll();">></a>
</div>
When trying to put caption underneath each image, the slider "breaks" by staying as follows:
How did the html:
<div id="pic-0">
<a href="/ModuloPublico/AssociacaoCooperativa/Index/101">
<img src="url da imagem" alt="Licor de Maracujá com Mousse" width="302" height="192" widht="100%">
</a>"Licor de Maracujá com Mousse"
<a href="/ModuloPublico/AssociacaoCooperativa/Index/101">
<img src="url da imagem" alt="Licor de maracuja concentrado" width="302" height="192" widht="100%">
</a>"Licor de maracuja concentrado"
<a class="previous" href="#pic-3" onclick="bgenScroll();"><</a>
<a class="next" href="#pic-1" onclick="bgenScroll();">></a>
</div>
CSS class:
.fieldset {
border: 1px solid #ccc;
padding: 25px;
}
.legend {
width: inherit; /* Or auto */
padding: 0 10px; /* To give a bit of padding on the left and right */
border-bottom: none;
}
.gallerywrapper {
margin-top: 5000px;
width: 100%;
height: 270px;
margin: 0 auto;
position: relative;
font-family: verdana, arial, sans-serif;
}
.gallerywrapper .gallery {
position: absolute;
text-decoration: none;
margin-top: 50%;
left: 0;
top: 0;
height: 270px;
width: 100%;
overflow: hidden;
text-align: center;
}
.gallerywrapper .gallery div {
width: 100%;
height: 900px;
padding-top: 10px;
position: relative;
}
.gallerywrapper .gallery div img {
clear: both;
display: inline-block;
margin: 0 auto;
border: 0;
}
.gallerywrapper .gallery div h3 {
padding: 10px 0 0 0;
margin: 0;
font-size: 18px;
}
.gallerywrapper .gallery div p {
padding: 5px 0;
margin: 0;
font-size: 12px;
line-height: 18px;
}
.gallery .previous {
display: inline;
float: left;
margin-left: 10px;
margin-top: 80px;
text-decoration: none;
}
.gallery .next {
display: inline;
float: right;
margin-right: 10px;
margin-top: 80px;
text-decoration: none;
}
Some way to leave the caption of each image, under each image?
Have you tested putting the text together with the image inside the <a></a> tag? With the code you posted there is not to simulate the error shown in the image, then it is difficult to help you...
– hugocsl
@hugocsl yes, it looks the same, but the text is linked
– Stand Alone
Text can’t have a link or whatever?
– hugocsl
@hugocsl whatever, just need each caption to be under each photo without harming the layout
– Stand Alone