Update style.css

Removed margins for <p> and added padding
This commit is contained in:
Nihaal Sharma
2023-05-20 13:16:32 +01:00
committed by GitHub
parent 8b80419a71
commit 51599deec1

View File

@@ -1,4 +1,4 @@
* { *{
box-sizing: border-box; box-sizing: border-box;
} }
b{color:#007AFF} b{color:#007AFF}
@@ -11,18 +11,18 @@ body{
} }
p{ p{
font-size: 20px; font-size: 20px;
position: absolute; padding: 20px;
top: 50%;
left: 50%;
} }
h1{ h1{
font-size: 45px; font-size: 45px;
font-weight: 800; font-weight: 800;
padding: 20px;
} }
h2{ h2{
font-size: 30px; font-size: 30px;
font-weight:300; font-weight:300;
margin-top:-38; margin-top:-38;
padding: 20px;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
body { body {