Skip to content

Commit

Permalink
Add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
wayungi committed Jun 29, 2022
1 parent 7024ff6 commit bb1b91d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
34 changes: 18 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,21 @@
<title>Awesome Books</title>
</head>
<body>
<!-- main navigation bar -->
<nav class="main-nav">
<p>Awesome Books</p>
<ul class="main-links">
<li><a href="#" class="active">List</a></li>
<li><a href="#" class="middle">Add new</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<!-- date below the navigation bar -->
<div id="date"></div>

<!-- list books page -->
<div class="books-container">

<!-- main navigation bar -->
<nav class="main-nav">
<p>Awesome Books</p>
<ul class="main-links">
<li><a href="#" class="active">List</a></li>
<li><a href="#" class="middle">Add new</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<!-- date below the navigation bar -->
<div id="date"></div>



<div class="heading"><h1>All awesome Books</h1></div>

<div class="book-list" id="booklist"></div>
<form>
<div class="title">
Expand All @@ -39,6 +35,12 @@
</form>
</div>


<!-- page footer -->
<footer class="footer">
copyright 2022 Francis and Abraha, all rights reserved
</footer>

<script src="index.js"></script>
</body>
</html>
10 changes: 9 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,17 @@ nav p {
color:black;
}


div#date{
display:flex;
flex-direction: row;
justify-content: flex-end;
}

footer{
border:1px solid black;
padding:15px 20px;
position:relative;
box-sizing: border-box;
bottom:0;
text-align: center;
}

0 comments on commit bb1b91d

Please sign in to comment.