I am applying a css style to my links however I do not want the style applied to links in the header nav or in the footer. My code here works to exclude the header nav but does not work to exclude the footer.
/* current general css for links */
p a:hover {
font-style: italic;
color:#990000!important;
text-decoration: underline !important;
text-decoration-thickness: 1px !important;
text-decoration-color: #990000 !important;
}
/* what I'm trying to add */
p:not(.header-nav-list):not(#footer) a {
text-decoration: none !important;
color: #000 !important;
font-weight: 600;
box-shadow: inset 0 -12px 0 rgba(142, 169, 139, .35);
color: inherit;
transition: all 1.2s ease-in-out;
}
p:not(.header-nav-list):not(#footer) a:hover {
background: rgba(142, 169, 139, .35);
box-shadow: none;
}
I have also tried to replace "#footer" with the section id of the footer.
Thanks in advance!