متن روی تصویر

sallamatii

تازه وارد
یه کد html و css می خوام

css : لازم دارم که تصویری رو درونش قرار بدم

html : متن رو داخلش بنویسم و متن دقیقا در وسط تصویر مذکور قرار بگیره

این بخش ناقص css :

#joda {

background:url(



) center no-repeat;

font-family: BKoodakBold,'B Yekan',tahoma;

font-size: 13pt;

}

این بخش ناقص html :

<div id="joda">


 

Black_Sky

کاربر عضو
css:


کد:
.lb-album{
width: 960px;
margin: 0 auto;
font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
}
.lb-album li{
float: right;
margin: 12px 12px 0 0;
position: relative;
border:2px solid #002aff;
overflow: hidden;
}
.lb-album li > a,
.lb-album li > a img{
display: block;
}
.lb-album li > a{
width: 300px;
height: 300px;
position: relative;
background: #535353;
}
.lb-album li > a span{
position: absolute;
width: 300px;
height: 300px;
top: 0px;
left: 0px;
text-align: center;
line-height: 370px;
color: rgba(255,255,255,0.8);
font-size: 16pt;
opacity: 0;
background: rgba(0,0,0,0.5) url(images/see.png) no-repeat center;
transition:0.2s linear;-moz-transition:0.2s linear;
-webkit-transition:0.2s linear;-o-transition:0.2s linear;
}
.lb-album li > a:hover span{
opacity: 1;
}
.lb-overlay{
width: 0px;
height: 0px;
position: fixed;
overflow: hidden;
left: 0px;
top: 0px;
padding: 0px;
z-index: 99;
text-align: center;
background: rgba(0,0,0,0.8);
}
.lb-overlay > div{
position: relative;
color: rgba(27,54,81,0.8);
opacity: 0;
width: 550px;
margin: 10px auto 0px auto;
text-shadow: 0px 1px 1px rgba(255,255,255,0.6);
-webkit-transition: opacity 0.3s linear 1.3s;
-moz-transition: opacity 0.3s linear 1.3s;
-o-transition: opacity 0.3s linear 1.3s;
-ms-transition: opacity 0.3s linear 1.3s;
transition: opacity 0.3s linear 1.3s;
}
.lb-overlay div h3{
font-size: 36px;
float: left;
text-align: right;
border-right: 1px solid rgba(27,54,81,0.4);
}
.lb-overlay div h3 span,
.lb-overlay div p{
font-size: 16px;
font-family: Constantia, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
font-style: italic;
}
.lb-overlay div h3 span{
display: block;
line-height: 6px;
}
.lb-overlay div p{
text-align: left;
float: left;
width: 260px;
}
.lb-overlay a.lb-close{
z-index: 1001;
color: #fff;
position: absolute;
top: 43px;
left: 50%;
font-size: 15px;
line-height: 26px;
text-align: center;
width: 50px;
height: 23px;
overflow: hidden;
margin-left: -25px;
opacity: 0;
filter: alpha(opacity=0); /* internet explorer */
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; /*IE8*/
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
box-shadow: 0px 1px 2px rgba(0,0,0,0.3);
-webkit-transition: opacity 0.3s linear 1.2s;
-moz-transition: opacity 0.3s linear 1.2s;
-o-transition: opacity 0.3s linear 1.2s;
-ms-transition: opacity 0.3s linear 1.2s;
transition: opacity 0.3s linear 1.2s;
}
.lb-overlay img{
/* height: 100%; For Opera max-height does not seem to work */
max-height: 100%;
position: relative;
-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
-moz-box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
box-shadow: 0px 2px 7px rgba(0,0,0,0.2);
}
.lb-overlay:target {
width: auto;
height: auto;
bottom: 0px;
right: 0px;
padding: 80px 100px 120px 100px;
}
.lb-overlay:target img {
-webkit-animation: fadeInScale 1.2s ease-in-out;
-moz-animation: fadeInScale 1.2s ease-in-out;
-o-animation: fadeInScale 1.2s ease-in-out;
-ms-animation: fadeInScale 1.2s ease-in-out;
animation: fadeInScale 1.2s ease-in-out;
}
.lb-overlay:target a.lb-close,
.lb-overlay:target > div{
opacity: 1;
filter: alpha(opacity=99); /* internet explorer */
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=99)"; /*IE8*/
}
@-webkit-keyframes fadeInScale {
0% { -webkit-transform: scale(0.6); opacity: 0; }
100% { -webkit-transform: scale(1); opacity: 1; }
}
@-moz-keyframes fadeInScale {
0% { -moz-transform: scale(0.6); opacity: 0; }
100% { -moz-transform: scale(1); opacity: 1; }
}
@-o-keyframes fadeInScale {
0% { -o-transform: scale(0.6); opacity: 0; }
100% { -o-transform: scale(1); opacity: 1; }
}
@-ms-keyframes fadeInScale {
0% { -ms-transform: scale(0.6); opacity: 0; }
100% { -ms-transform: scale(1); opacity: 1; }
}
@keyframes fadeInScale {
0% { transform: scale(0.6); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
x:-o-prefocus, .lb-overlay img {
height: 100%;
}
php:


کد:
<ul class="lb-album">


<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<li>
<a href="#<?php echo the_title(); ?>">
         <img src="
         <?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'second-thumb' ); echo $thumb['0']; ?>
         " alt="image01">
         <span>See Full Size</span>
</a>
<div class="lb-overlay" id="<?php echo the_title(); ?>">
         <a href="#page" class="lb-close">Close Picture</a>
         <img src="
         <?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'second-thumb' ); echo $thumb['0']; ?>
         " alt="image01">
</div>
</li>


<?php endwhile; ?>
<?php endif; ?>
</ul>
 
بالا