Skip to content

Commit 2401980

Browse files
committed
Avoid CSS targeting elements
1 parent 3dea46d commit 2401980

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/App.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
justify-content: center;
2020
}
2121

22-
.App p {
22+
.App-intro {
2323
flex: 7;
24+
font-size: large;
2425
padding: 50px;
26+
text-align: center;
2527
}
2628

2729
@keyframes spin {

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function App() {
99
<img src={logo} className="App-logo" alt="logo" />
1010
<h2>Welcome to React.</h2>
1111
</div>
12-
<p>
12+
<p className="App-intro">
1313
To get started, edit <code>src/App.js</code> and save to reload.
1414
</p>
1515
</div>

0 commit comments

Comments
 (0)