Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/08/2014, 07:36
bbrian
 
Fecha de Ingreso: enero-2010
Mensajes: 400
Antigüedad: 14 años, 3 meses
Puntos: 6
<?php the_excerpt(); ?> CSS

Hola a todos, quiero darle un estilo a <?php the_excerpt(); ?> pero cuando lo pongo asi:

Código CSS:
Ver original
  1. <p class="titled" id="target"><span class="highlight"><?php the_excerpt(); ?></span></p>

No me funciona en cambio si se lo pongo a <?php the_title(); ?


Código CSS:
Ver original
  1. <p class="titled" id="target"><span class="highlight"><?php the_title(); ?></span></p>

Sale perfecto, como yo quiero. Alguien sabe cual es el problema? Gracias

EL CSS ES:

Código CSS:
Ver original
  1. .titled .highlight {
  2.   display: inline;
  3.  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.72);
  4.     filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#B7000000,endColorstr=#B7000000);
  5.   color: white;
  6.   font-size:40px;
  7.   font-family:"Lato Black";
  8.   padding: 0.2rem;
  9.   padding-left: 8px;
  10.   padding-right: 4px;;
  11. }
  12. .titlede.step-1 .highlight {
  13.   box-shadow: 0.5rem 0 0 #ee4035, -0.5rem 0 0 #ee4035;
  14. }
  15. .titlede.step-2 .highlight {
  16.   box-shadow: 0.5rem 0 0 blue, -0.5rem 0 0 blue;
  17. }