<!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">
<title>Digital Web Agency</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<header>
<div class="navbar">
<div class="container">
<img src="imgs/Logo.png" alt="" class="img">
<nav>
<ul>
<li><a href="index.html"></a>Home</li>
<li><a href="whowehelp.html"></a>Who We Help</li>
<li>
<a href="services.html"></a>Services
<span class="downArrow">></span>
</li>
<li><a href="technology.html"></a>Technology</li>
<li><a href="company.html"></a>Company</li>
</ul>
</nav>
<div class="cta"></div>
<button class="btn btn-primary">Get in Touch</button>
</div>
</div>
</div>
</header>
<script src="main.js"></script>
</body>
</html>
Here is the HTML code snippet above and below you can find the related CSS code snippet. The issue I'm facing is that when I try to use the transform: rotate(90deg); property, it doesn't seem to rotate at all. Can anyone provide insight into why this might be happening?
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100;300;700&family=Poppins:wght@100;200;500;700&display=swap");
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.navbar {
background-color: beige;
}
nav {
display: flex;
align-items: center;
justify-content: center;
}
.img {
width: 110px;
margin-left: 150px;
margin-top: 10px;
}
nav ul li {
list-style: none;
cursor: pointer;
display: inline-block;
margin: 0 20;
padding-right: 40px;
font-family: "Poppins", sans-serif;
font-weight: 200;
font-size: 1.2rem;
}
nav ul li:hover {
font-weight: 700;
}
.cta a {
text-decoration: none;
}
.container {
display: flex;
justify-content: space-between;
width: 100%;
}
.btn-primary {
margin-top: 2.1rem;
margin-left: 0;
margin-right: 8rem;
margin-bottom: 40px;
padding: 1rem;
background-color: #ee5f22;
color: white;
font-family: "Poppins", sans-serif;
font-weight: 700;
border-radius: 7%;
font-size: 1.1rem;
padding: 0px 20px;
border: none;
}
.btn-primary:hover {
border: 1.5px solid black;
cursor: pointer;
}
.downArrow {
color: #ee5f22;
transform: rotate(90deg);
}
I am not sure if the problem lies in the usage of the span element or if the rotate function is being applied incorrectly. I have tried adjusting the rotation values without success. Any suggestions would be greatly appreciated. Thank you for your assistance!