Add Navbar with style

This commit is contained in:
2026-05-02 17:50:56 +02:00
parent a79976036a
commit 23b2f78093
2 changed files with 29 additions and 3 deletions
+20 -1
View File
@@ -1,7 +1,26 @@
body{
margin: 0;
}
nav{
display: flex;
justify-content: center;
padding: 10px 0;
border-bottom: 1px solid #000000;
}
nav ul {
display: flex;
list-style: none;
margin: 0;
padding: 0;
gap: 30px;
}
nav a{
text-decoration: none;
color: black;
}
nav a:hover{
text-decoration: underline;
}
header{
text-align: center;
}
+9 -2
View File
@@ -23,11 +23,18 @@ limitations under the License.
<link rel="stylesheet" href="assets/style/main.css" />
</head>
<body>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<header>
<h1>Seekra</h1>
<div>
<p>
Built to search.
</div>
</p>
</header>
<form>