Kép felett megjelenő szövegdoboz

Hali mindenki!
Kezdjük azzal,hogy ennek a kódnak több fajtája van...ha azt akarod hogy a képed Alatt legyen a dobozka a Kódoknál megtalálhatod azt is!
A kódot én is kipróbáltam így működik,teljesen biztosan.
Amiket PIROS színnel látsz azok amiket mindenképpen írj át...
Pár segítség is van /**/.
Remélem mindenkinek tetszik,és hasznos lesz!
Csókol mindenkit,
Clara T.
___________________________________________________________


<style type="text/css">
.imagecenter{
position: relative;
width: 260px; /* doboz szélessége */
height: 100%; /* doboz magassága */
text-align: center; /* dobozban a szöveg elrendezése */}

.imagecenter img{
position: relative;
-moz-transition: all 0.5s ease;}

.imagecenter:hover img{ /* linkre a kép */
padding: 0px;
filter: alpha(opacity=80); /* kép halványítása */
opacity: 0.8; /* kép halványítása */ }

.imagecenter div.desc{ /* felugró doboz */
position: absolute;
width: 90%;
bottom: 0;
padding: 10px; /* a doboz és a széle közötti táv */
background: #49CDAC; /* doboz háttérszíne */
opacity: 0; /* Set initial opacity to 0 */
-moz-border-radius: 0 9px 0 9px; /* keret */
-webkit-border-radius: 0 9px 0 9px; /* keret */
border-radius: 0 9px 0 9px; /* keret */
-moz-box-shadow: 0 0 6px #858585; /* doboz árnyéka */
-webkit-box-shadow: 0 0 6px #858585; /* doboz árnyéka */
box-shadow: 0 0 6px #858585; /* keret árnyéka */
-moz-transition: all 0.5s ease 0.5s;
-webkit-transition: all 0.5s ease 0.5s;}

.imagecenter div.desc a{ /* link színe */
color: #F9D536;}

.imagecenter:hover div.desc{ /*a szöveg színe */
color: #ffffff;
opacity: 1;}

.imagecenter div.upslide{ /* a doboz felül */
top:0;
bottom:auto;
padding-bottom:5px;
-moz-border-radius: 0 9px 0 9px; /* keret */
-webkit-border-radius: 0 9px 0 9px; /* keret */
border-radius: 0 9px 0 9px; /* keret */}

.imagecenter:hover div.upslide{
-moz-transform: translate(0, -100%);
-webkit-transform: translate(0, -100%);}</style>

<div align="center">
<div class="imagecenter">
<img src="http://aranymeli.gportal.hu/portal/aranymeli/image/gallery/1280675881_72.png" />
<div class="desc upslide">
<u>Felugró szöveg a linkelt képre</u><br />
Vidd az egeret a kép fölé és olvasd el a felugró szövegben az adott információt a képről :) Több képeffekt itt található: <a href="http://aranymeli.gportal.hu/gindex.php?pg=35799854">Képeffektek</a></div>


A szövegdoboz a kép ALATT jelenik meg(kódért köszönet az FuckinWayGp-nak)




<div class="imagepluscontainer" style="width:280px; height:230px; z-index:2">
<img src="http://fuckinway.gportal.hu/portal/fuckinway/image/gallery/1345374365_55.png" />
<div class="desc">
Ide jön a szöveged. Ide jön a szöveged. Ide jön a szöveged. Ide jön a szöveged. Ide jön a szöveged. Ide jön a szöveged. Ide jön a szöveged. Ide jön a szöveged. Ide jön a szöveged.
</div>
</div>
<br />
</div>

<style>

.imagepluscontainer{ 
position: relative;
z-index: 1;
}

.imagepluscontainer img{ 
position: relative;
z-index: 2;
-moz-transition: all 0.5s ease; 
-webkit-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
}

.imagepluscontainer:hover img{ 
-moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
-moz-transform: scale(1.05, 1.05);
-webkit-transform: scale(1.05, 1.05);
-ms-transform: scale(1.05, 1.05);
-o-transform: scale(1.05, 1.05);
transform: scale(1.05, 1.05);
}

.imagepluscontainer div.desc{ 
position: absolute;
width: 90%;
z-index: 1; 
bottom: 0;
left: 5px;
padding: 8px;
background: rgba(0, 0, 0, 0.8); 
color: white;
-moz-border-radius: 0 0 8px 8px; 
-webkit-border-radius: 0 0 8px 8px;
border-radius: 0 0 8px 8px;
opacity: 0; /* Set initial opacity to 0 */
-moz-box-shadow: 0 0 6px rgba(0, 0, 0, 0.8); 
-webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
-moz-transition: all 0.5s ease 0.5s;
-webkit-transition: all 0.5s ease 0.5s;
-o-transition: all 0.5s ease 0.5s;
-ms-transition: all 0.5s ease 0.5s;
transition: all 0.5s ease 0.5s;
}

.imagepluscontainer div.desc a{
color: white;
}

.imagepluscontainer:hover div.desc{ 
-moz-transform: translate(0, 100%);
-webkit-transform: translate(0, 100%);
-ms-transform: translate(0, 100%);
-o-transform: translate(0, 100%);
transform: translate(0, 100%);
opacity:1; /* Reveal desc DIV fully */
}


.imagepluscontainer div.rightslide{
width: 150px; 
top:15px;
right:0;
left:auto; 
bottom:auto; 
padding-left:15px;
-moz-border-radius: 0 8px 8px 0;
-webkit-border-radius: 0 8px 8px 0;
border-radius: 0 8px 8px 0;
}

.imagepluscontainer:hover div.rightslide{
-moz-transform: translate(100%, 0);
-webkit-transform: translate(100%, 0);
-ms-transform: translate(100%, 0);
-o-transform: translate(100%, 0);
transform: translate(100%, 0);
}



.imagepluscontainer div.leftslide{
width: 150px; 
top:15px;
left:0;
bottom:auto; 
padding-left:15px;
-moz-border-radius: 8px 0 0 8px;
-webkit-border-radius: 8px 0 0 8px;
border-radius: 8px 0 0 8px;
}

.imagepluscontainer:hover div.leftslide{
-moz-transform: translate(-100%, 0);
-webkit-transform: translate(-100%, 0);
-ms-transform: translate(-100%, 0);
-o-transform: translate(-100%, 0);
transform:translate(-100%, 0);
}



.imagepluscontainer div.upslide{
top:0;
bottom:auto; 
padding-bottom:10px;
-moz-border-radius: 8px 8px 0 0;
-webkit-border-radius: 8px 8px 0 0;
border-radius: 8px 8px 0 0;
}

.imagepluscontainer:hover div.upslide{
-moz-transform: translate(0, -100%);
-webkit-transform: translate(0, -100%);
-ms-transform: translate(0, -100%);
-o-transform: translate(0, -100%);
transform:translate(0, -100%);
}

</style>

Nincsenek megjegyzések: