MoeTalks Posted April 10 Share Posted April 10 www.moetalks.com password 2024 Start in css at line 62. I am trying to change the style of the hover links on the site navigation only. This first part works great. Just the way I want it on the navigation part on all pages. // dropdown background & font colors // .header-nav-folder-item { background: #0b5394; /* opacity: 100%!important; if you want to make it a little less blue*/ a { color: white!important; } } // dropdown hover colors // .header-nav-folder-item:hover { background: #fac827; } /* Nav item hover color */ .header-nav-item a:hover { font-weight: bold!important; text-decoration:underline!important; a { color: white!important; } } But as soon as I add the below, it overrides the navigation and uses the below for the entire site, including the navigation. I tried the #page selector and it works but because I also have markdown blocks that have links in them I would have to create a different code for each markdown block. It works perfectly without the #page selector but it's taking over the navigation. How do I just target hover navigation links? // #page .sqs-block-html // a {color: #0b5394!important; text-decoration: none!important; } // #page .sqs-block-html // a:hover { color: #0b5394!important; text-decoration: underline!important; font-weight:bold } Link to comment
Solution MoeTalks Posted April 10 Author Solution Share Posted April 10 And once again after spending all day working my regular job and tryig to figure out this code, the minute I send a message to the forum I figure it out. I needed to target the #page and NOT the sqs-block-html. It works now perfect. Site is still open but thanks anyway. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment