Skip to content

Commit

Permalink
content: css-intro - improve class selector
Browse files Browse the repository at this point in the history
  • Loading branch information
luizchaves committed Oct 23, 2024
1 parent acbb424 commit 7e63029
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 9 additions & 1 deletion public/codes/css/introduction/selector-class/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ p {
color: green;
}

.color-red {
.text-red {
color: red;
}

.text-italic {
font-style: italic;
}

.text-bold {
font-weight: bold;
}
8 changes: 3 additions & 5 deletions public/codes/css/introduction/selector-class/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<h1>Lorem ipsum</h1>
<p class="color-red">
Lorem ipsum dolor sit amet, consectetur adipisicing elit...
</p>
<h1 class="text-red">Lorem ipsum</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit...</p>
<p>Culpa possimus obcaecati laudantium nesciunt consequatur...</p>
<p class="color-red">
<p class="text-red text-italic">
Eveniet amet laudantium aperiam nisi ratione at, blanditiis...
</p>
</body>
Expand Down

0 comments on commit 7e63029

Please sign in to comment.