I was wondering when styling our unordered list in our CSS code . header was styled instead of .header li? heres the code:
HTML:
nav class=“header”
ul
li a class=“home” href="#top">FAVORITE FONTS/a/li
li a class=“pagelink” href="#serif">SERIF/a/li
li a class=“pagelink” href="#sans">SANS-SERIF/a/li
li a class=“pagelink” href="#mono">MONOSPACED/a/li
/ul
/nav
CSS:
.header {
font-family: “Arial”, sans-serif;
font-size: 14px;
line-height: 1.25;
background-color: #fff;
position: fixed;
top: 0;
width: 100%;
}
.header li {
display: inline-block;
}
Shouldn’t the .header li be taking most of the information like: font-family, font-size etc (instead of .header) since we’re specifically targeting the unordered list? (sorry if the HTML code is confusing i cant seem to paste the HTML code it doesn’t show up as code)