“blockquote” - CSS

Posté par Pat dans Tutoriels | 27 jan 2009 à 16:32 0

En création de page web on constate que l’utilisation d’une balise <blockquote> induit un retrait du texte. Déduction : la balise <blockquote> est faite pour mettre un texte en retrait…

En réalité, elle n’est pas du tout faite pour cela. En anglais “quote” signifie “citer“. La balise <blockquote> est censée être utilisée pour mettre un “bloc” de citation en valeur.

Html :
<blockquote>
 
<span>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span>
</blockquote>
Exemple :

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.


Il est possible de configurer le code css pour personnaliser l’apparence.

Css :
blockquote.guillemets {
font:14px/20px italic serif;
padding:8px;
border-top:1px solid #e1cc89;
border-bottom:1px solid #e1cc89;
margin:5px;
background:url(openquote.gif) no-repeat top left #faebbc;
text-indent: 23px;
}
 
blockquote.guillemets span {
display:block;
background-image:url(closequote1.gif) no-repeat bottom right;
}

Télécharger la démo et l’exemple


Exemples sur le web :





Partager:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • blogmarks
  • De.lirio.us
  • Design Float
  • LinkedIn
  • Netvouz
  • StumbleUpon
  • Technorati

Pas de commentaires

pour ““blockquote” - CSS”

Envoyer un commentaire

Vous devez être connecté pour envoyer un commentaire.