Adjust css examples formatting (#26127)

This commit is contained in:
David Way
2018-12-13 05:03:03 +00:00
committed by Tom
parent 18d5502965
commit 012e93154b
35 changed files with 303 additions and 326 deletions

View File

@@ -7,10 +7,12 @@ A Class Selector is used in a CSS file to apply style to the HTML elements with
To select elements with a specific class, we use a full stop `.` or "period" character, with the name of the class.
For example
```css
.center {
text-align: center;
color: red;
text-align: center;
color: red;
}
```
Here, all HTML elements with `class="center"` will be red and center-aligned.
@@ -52,5 +54,3 @@ h1.test, h2.test {
**Tips: No space between multiple classes.**
#### More Information:
CSS Syntax and Selectors: <a href='https://www.w3schools.com/css/css_syntax.asp' target='_blank' rel='nofollow'>w3schools</a>