Skip to content

Commit

Permalink
Merge pull request #114 from preritjn/main
Browse files Browse the repository at this point in the history
Resolved Issue #12
  • Loading branch information
binayaksadangi authored Oct 11, 2022
2 parents 459c21d + fb3cbf1 commit 2500417
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Prerit Kumar Jain/Issue No. 12/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Navigation Bar</title>
</head>

<body>
<div class="box">
<ul class="list">
<li>Home</li>
<li>About</li>
<li>Sectors</li>
<li>Contact Us</li>
</ul>
</div>
</body>
</html>
28 changes: 28 additions & 0 deletions Prerit Kumar Jain/Issue No. 12/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
* {
padding: 0;
margin: 0;
}

.list {
display: flex;
align-items: center;
justify-content: center;
list-style: none;
}

li {
padding: 10px 20px;
white-space: nowrap;
margin: 0 auto;
max-width: 1200px;
}

.box {
width: 100vw;
height: 5vh;
background-color: lightgrey;
}

.list li:hover {
text-decoration: underline;
}

0 comments on commit 2500417

Please sign in to comment.