Skip to content

Commit

Permalink
an HTML page that displays a header and a footer by using the style t…
Browse files Browse the repository at this point in the history
…ag in the head tag (same as 0-index.html)
  • Loading branch information
GideonBature committed Oct 20, 2023
1 parent b8ef231 commit 680a9f1
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions web_static/1-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>AirBnB Clone</title>
<style>
* {
margin: 0;
}

body {
position: relative;
height: 100vh;
}

header {
background-color: #FF0000;
height: 70px;
width: 100%;
}

footer {
position: absolute;
background-color: #00FF00;
height: 60px;
width: 100%;
bottom: 0;
}

footer p {
text-align: center;
line-height: 60px;
}
</style>
</head>
<body>
<header></header>
<footer>
<p>Best School</p>
</footer>
</body>
</html>

0 comments on commit 680a9f1

Please sign in to comment.