Skip to content

Commit

Permalink
Correzione errori slide
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobaccan committed Mar 25, 2024
1 parent c984014 commit 2855644
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
28 changes: 15 additions & 13 deletions esercizi/04-css-selector-combinator.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,35 @@
<head>
<title>Titolo della pagina</title>
<style>
div p {
background-color: red;
}
div p {
background-color: red;
}

div>p {
color: white;
}
div > p {
color: white;
}

h3+span {
color: yellow;
}
h3 + span {
color: blue;
}

h2~h3 {
border: 1px solid black;
}
h2 ~ h3 {
border: 1px solid black;
}
</style>
</head>

<body>
<h1>Intestazione 1</h1>
<div>
<h2>Intestazione 2</h2>
<p> div &gt; p</p>
<span>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</span>
<h3>Intestazione 2</h3>
<h3>Intestazione 3</h3>
<span>
prova
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions slide/CorsoCSS.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ selector::pseudoelemento {

Un pseudo elemento viene utilizzato per applicare uno stile a una parte specifica di un elemento.

__::after__ prima dell’elemento
__::before__ dopo l’elemento
__::after__ dopo l'elemento
__::before__ prima dell'elemento
__::first-child__ è il primo elemento di una lista

---
Expand Down

0 comments on commit 2855644

Please sign in to comment.