add some css codes
This commit is contained in:
parent
4ac112f7b4
commit
f7b8a1523d
15
index.html
15
index.html
@ -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>
|
20
style.css
20
style.css
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user