<h1><span>blablabla</span></h1> |
CSS v1:
h1 {
display: none;
width: 750px;
height: 100px;
background-image: url(leet_image.png);
} |
==> affichage: keud, parce qu'on a caché le h1
Alors que
CSS v2 (proposition de GM)
h1 span {
display: none;
}
h1 {
width: 750px;
height: 100px;
background-image: url(leet_image.png);
} |
==> Affichage: leet_image apparaît, mais pas le texte, parce qu'on a caché (display: none) uniquement le texte et pas l'intégralité de la boite <h1>
en exemples d'utilisation je peux te filer cette mini démo
(le CSS est mauvais, à la base ca fait partie d'une page plus grande mais je l'avais extrait pour tester IE7, et le code est mal conçu, les taggings pourraient être mieux faits)
---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?