add some css codes

This commit is contained in:
mhrooz 2024-05-22 16:54:19 +02:00
parent 4ac112f7b4
commit f7b8a1523d
2 changed files with 31 additions and 4 deletions

View File

@ -3,13 +3,20 @@
<html lang="en">
<head>
<title>Home</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- Header -->
<div class="badge">
<i class="icon">🔔</i>
<a href="index.html">Home</a>
<div class="container">
<div class="badge">
<span class="left-span">
<i class="icon">🔔</i>
</span>
<span class="right-span">
<a href="index.html" class="link">Home</a>
<a href="explore.html" class="link">Explore</a>
</span>
</div>
</div>
</body>

View File

@ -1,3 +1,23 @@
body{
background-color: #171717;
}
.badge{
color: #a3a3a3;
font: 18px 'Roboto', sans-serif;
}
.container{
display: flex;
max-width: 750px;
padding: 0 1rem;
}
.left-span{
flex: 1;
}
.right-span{
flex: 1;
text-align: right;
}
.link{
color: #a3a3a3;
text-decoration: none;
}