CSS selettore di discendenti

Pagina di prova per il selettore di discendenti

Articolo completo sui selettori CSS su css.FlepStudio.org

Ritorna alla lista delle pagine di prove dei selettori css su Onsitus.it.

1. Esempio per un span dentro un paragrafo.

Regola css:

p span{
font-style: italic;
color: red;
}

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 sono un elemento span contenuto in un paragrafo. 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.

2. Esempio per un link dentro un div con nemo id 'mioDiv'

Regola css:

#mioDiv a{
font-style: italic;
color: red;
}

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 sono un link contenuto in un elemento div con id 'mioDiv'. 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 sono un secondo link contenuto in un elemento div more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.