Est-il possible en css de supprimer du texte qui n'est pas dans une balise (j'aurai tendance à dire non)
Exemple : <body>coucou phpfrance</body>
supprimer 1 des 2 mots ou les 2.
Féfé
body::nth-word(2) {
display:none;
}
Pas mal d'exemples ici :
<div id="madiv">
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
Comment dire à la première cellule du premier tableau de se colorier en rouge et à la première cellule du second tableau de se colorier en vert ? J'arrive à cibler mes éléments mais mes 2 cellules prennent la couleur rouge
#madiv > table:nth-of-type(1) > tbody > tr:nth-of-type(1) > td:nth-of-type(1) {
background-color:red;
}
#madiv > table table:nth-of-type(1) > tbody > tr:nth-of-type(1) > td:nth-of-type(1) {
background-color:green;
}
http://codepen.io/anon/pen/VLNLBQ