Is there something special about links when setting certain properties?
It looks like some properties (font-weight, etc) will cascade down to the element from higher elements, but others don't. (I played around setting color at various levels in my code, then commented it out).
Color does not seem to work and text-decoration does not work fully.
Do certain properties need to be directly assigned to links? I am thinking this might be related to browser behavior (like visited)?
/*
Example1 css
*/
body {
color: red;
font-weight: bold;
text-decoration: line-through;
}
nav {
/* float: left; */
margin-right: 10px;
width: 200px;
}
nav {
background-color: rgb(235,235,235);
/* color: black; */
/* font-weight: bold; */
}
nav ul {
/* color: green; */
}
nav ul li {
/* color: yellow; */
}
nav ul li a{
/* color: orange; */
}
<!DOCTYPE html>
<html>
<head>
<!--
Example1
-->
<link rel="stylesheet" type="text/css" href="Example1_styles.css">
</head>
<body> BOO1
<nav> BOO2
<ul>BOO3
<li><a href="#">Option 1</a> BOO4</li>
<li><a href="#">Option 2</a></li>
</ul>
</nav>
</body>
</html>