-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #469 from eiva078/alignment
Fix Misaligned Elements on Small Screens
- Loading branch information
Showing
3 changed files
with
175 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,70 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>404:Page not found</title> | ||
<link rel="shortcut icon" href="../assets/favicon.ico" type="image/x-icon"> | ||
</head> | ||
<style> | ||
body{ | ||
margin: 0; | ||
padding: 0; | ||
font-family: Arial, sans-serif; | ||
background-color: #f6f6f6; | ||
<link | ||
rel="shortcut icon" | ||
href="../assets/favicon.ico" | ||
type="image/x-icon" | ||
/> | ||
</head> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: Arial, sans-serif; | ||
background-color: #f6f6f6; | ||
} | ||
.center { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 90vh; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 90vh; | ||
} | ||
.pic{ | ||
width: 700px; | ||
height: 700px; | ||
animation: updown 2s ease-in-out infinite alternate; | ||
.pic { | ||
width: 700px; | ||
height: 700px; | ||
animation: updown 2s ease-in-out infinite alternate; | ||
} | ||
@keyframes updown { | ||
from{ | ||
transform: translateY(0); | ||
} | ||
to{ | ||
transform: translateY(20px); | ||
} | ||
from { | ||
transform: translateY(0); | ||
} | ||
to { | ||
transform: translateY(20px); | ||
} | ||
} | ||
a{ | ||
text-decoration: none; | ||
color: #353535; | ||
a { | ||
text-decoration: none; | ||
color: #353535; | ||
} | ||
.btn{ | ||
position: absolute; | ||
padding: 10px 20px; | ||
background-color: #32ddaac9; | ||
border-radius: 5px; | ||
font-size: 20px; | ||
font-weight: bold; | ||
border: none; | ||
top: 600px; | ||
.btn { | ||
position: absolute; | ||
padding: 10px 20px; | ||
background-color: #32ddaac9; | ||
border-radius: 5px; | ||
font-size: 20px; | ||
font-weight: bold; | ||
border: none; | ||
top: 600px; | ||
} | ||
@media screen and (max-width: 600px) { | ||
.pic{ | ||
width: 300px; | ||
height: 300px; | ||
} | ||
.btn{ | ||
top: 400px; | ||
} | ||
.pic { | ||
width: 300px; | ||
height: 300px; | ||
} | ||
.btn { | ||
top: 400px; | ||
} | ||
} | ||
</style> | ||
<body> | ||
</style> | ||
<body> | ||
<div class="center"> | ||
<img src="../assets/images/404pic.png" alt="404 pic" class="pic"> | ||
<button class="btn"><a href="../index.html">Home</a></button> | ||
<img src="../assets/images/404pic.png" alt="404 pic" class="pic" /> | ||
<button class="btn"><a href="../index.html">Home</a></button> | ||
</div> | ||
</body> | ||
</html> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.