XF 1.2 How to style "New Post" link?

rdn

Well-known member
Like what @Shelley did on her forum:
upload_2014-1-17_17-4-54.webp

Guest:
upload_2014-1-17_17-0-0.webp


On her forum, she coded it like this:
Code:
.navTabs .navTab.selected .tabLinks.forumsTabLinks li:last-child a {
background-color: #688e00;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
border-radius: 2px;
color: white;
padding: 0 7px;
margin-top: 3px;
line-height: 20px;
}

But I have different order of "Recent Posts/New Post" link on mine.
Member:
upload_2014-1-17_17-9-39.webp

Guest:
upload_2014-1-17_17-1-49.webp
 

Attachments

  • upload_2014-1-17_17-1-24.webp
    upload_2014-1-17_17-1-24.webp
    6.2 KB · Views: 6
Last edited:
She has used :last-child pseudo selector. Try removing that and add :hover pseudo property or .active class whichever is necessary for you.
 
Escuse mi ignorance on the matter. You're telling that this would be the correct code?
Code:
.navTabs .navTab.selected .tabLinks.forumsTabLinks li:hover a {
background-color: #688e00;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-khtml-border-radius: 2px;
border-radius: 2px;
color: white;
padding: 0 7px;
margin-top: 3px;
line-height: 20px;
}
 
  • Like
Reactions: rdn
Back
Top Bottom