Skip to content

Commit

Permalink
Merge pull request #244 from Fuzaildev/patch-1
Browse files Browse the repository at this point in the history
Update basic.mdx ( Add Some important Selectors tags )
  • Loading branch information
Vishal-raj-1 authored Oct 31, 2023
2 parents fa456a7 + fb5020e commit 5690a71
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions content/batch/learn/css/basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,22 @@ h1 {
color: green;
}

/* Child Selector (using > ) */
div>p {
background-color: green;
}

/* Descendant Selector */
.div p {
background-color: maroon;
}

/* Universal Selector (ALL Elements margin and padding are 0; ) */
* {
margin: 0;
padding: 0;
}

/* Specificity example */
.heading#title {
color: yellow;
Expand Down

0 comments on commit 5690a71

Please sign in to comment.