Comunidad de diseño web y desarrollo en internet online

Poner texto encima de imagen

Citar            
MensajeEscrito el 07 Feb 2012 03:20 pm
Hola, en mi blog, quiero que el numero de comentarios aparezca encima de una imagen pero no se como hacerlo. Este es el css


Código :

/* single post */
.single .post, #main .single-post   { background: #FFF; border: 1px solid #CCC; }
.single .post .entry-title, .single-post .entry-title   { font-size: 22px; font-weight: 700; }
.single .post .entry-info, .single-post .entry-info   { color: #848485; font-size: 11px; text-transform: uppercase; border-bottom: 1px dotted #CCC; }
.single .post .entry-info .published, .single-post .entry-info .published { border: none; }
.single .post .entry-cat, .single-post .entry-cat   { color: #848485; line-height: 1.5em; }
.single-post .entry-info a:link, .single-post .entry-info a:visited   { color: #666; text-decoration: none; }
.single-post .entry-info a:hover   { color: #333; }
.single .post .entry-author, .single-post .entry-author { font-weight: 700; color: #848485; }
.single .post .entry-author address, .single-post .entry-author address   { font-style: normal; }
#main .single .post .tags, #main .single-post .tags { color: #848485; border-top: 1px dotted #CCC; line-height: 1.5em; }
#main .single .post .tags strong, #main .single-post .tags strong { text-transform: uppercase; font-size: 11px; }
.single .post .entry-photo img, .single-post .entry-photo img   { border: 1px solid #CCC; }
.single .post .entry-comments, .single-post .entry-comments  { float: right; padding: 47px 47px 47px 60px; margin-top: 20px; background: url(../../images/comments.gif) no-repeat 3px 6px #ffffff; display: inline-block; color: #000; font-size: 14px; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; }

Por Rdemiguel

5 de clabLevel



 

firefox
Citar            
MensajeEscrito el 07 Feb 2012 04:27 pm
Puedes aplicar la imagen como fondo de un div y dentro de ese div poner el nº de comentarios, ejemplo:

Código HTML :

<div style="background: url(tu-imagen.jpg); "> 22 Comentarios </div>


Saludos

Por Lord_war

8 de clabLevel



Genero:Masculino  

Programador web

chrome

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.