Hey there, I'm new to HTML and CSS and need some help changing the font color and size of my navbar. I've included my code below:
HTML code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title> Shoe Website</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="homepage.css">
</head>
<body>
<div class="top-header">
<a href="">About us</a>
<a href="">Privacy Policy</a>
<a href="">Contact us</a>
<a href="">Terms of use</a>
<div class="middle"> </div>
<div class="space-end"></div>
</div>
<div class="navbar">
<div class="logo">
<img src="images/Screenshot 2023-07-09 162710.png">
</div>
<div class="navbar">
<ul>
<li> <a href="">Home</a></li>
<li> <a href="">Shop</a></li>
<li> <a href="">Pages</a></li>
<li> <a href=""> Contact</a></li>
</ul>
</div>
</div>
</body>
</html>
Here is my CSS code:
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
.top-header{
display: flex;
flex-direction: row;
justify-content: space-between;
background-color: #343a40;
height: 40px;
width: 100%;
margin: 0;
padding-left: 20px;
align-items: center;
margin-bottom: 30px;
}
a{
font-family: 'Poppins', sans-serif;
width: 120px;
text-align: center;
font-size: 13px;
text-decoration: none;
color: #F4EEE0;
margin: 0;
}
a:hover{
color: #176B87;
transition: 0.3s ease;
}
body, html{
margin: 0;
margin: 0;
}
.navbar{
display: flex;
flex-direction: row;
}
.logo{
padding-left: 30px;
width: 500px;
}
ul, li{
list-style-type: none;
display: flex;
color: #000000;
}
I'm looking to change the font color and size of "Home, Shop, Pages, and Contact."
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
.top-header{
display: flex;
flex-direction: row;
justify-content: space-between;
background-color: #343a40;
height: 40px;
width: 100%;
margin: 0;
padding-left: 20px;
align-items: center;
margin-bottom: 30px;
}
a{
font-family: 'Poppins', sans-serif;
width: 120px;
text-align: center;
font-size: 13px;
text-decoration: none;
color: #F4EEE0;
margin: 0;
}
a:hover{
color: #176B87;
transition: 0.3s ease;
}
body, html{
margin: 0;
margin: 0;
}
.navbar{
display: flex;
flex-direction: row;
}
.logo{
padding-left: 30px;
width: 500px;
}
ul, li{
list-style-type: none;
display: flex;
color: #000000;
}
<div class="top-header">
<a href="">About us</a>
<a href="">Privacy Policy</a>
<a href="">Contact us</a>
<a href="">Terms of use</a>
<div class="middle"> </div>
<div class="space-end"></div>
</div>
<div class="navbar">
<div class="logo">
</div>
<div class="navbar">
<ul>
<li> <a href="">Home</a></li>
<li> <a href="">Shop</a></li>
<li> <a href="">Pages</a></li>
<li> <a href=""> Contact</a></li>
</ul>
</div>
</div>