Skip to content

Commit

Permalink
Shorten the CSS code
Browse files Browse the repository at this point in the history
  • Loading branch information
GengineerDev committed Sep 15, 2022
1 parent 70681a7 commit f24f915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
18 changes: 3 additions & 15 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
*, ::before, ::after {
padding: 0;
margin: 0;
box-sizing: border-box;
}

body {
html, body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
padding: 2%;
}

.logo {
margin-bottom: 1%;
padding: 10px;
margin: 0;
}

.list {
margin: 1% 0 0 3%;
}
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const root = ReactDOM.createRoot(document.getElementById("root"))

const page = (
<div>
<img src="react-logo.png" height="50px" className="logo"/>
<img src="react-logo.png" width = "40px"/>
<h1>Fun facts about React</h1>
<ul className="list">
<ul>
<li>Was first released in 2013</li>
<li>Was originally created by Jordan Walke</li>
<li>Has well over 100K stars on Github</li>
Expand Down

0 comments on commit f24f915

Please sign in to comment.