nav ul {
}
nav ul li {
margin-left: 7px;
}
nav.ul li a, a:link, a:visited {
float: left;
padding: 7px;
margin-left: 15px;
color: #ffffff;
text-decoration: none;
font-weight: bold;
}
nav ul li a:hover {
}
The styling above is specifically intended for elements within the <nav></nav>
tag.
However, it seems to also be affecting <a href="">
tags outside of the nav element. How can I ensure that the styling targets only elements within the nav?