WordPress.org

Ready to get started?Download WordPress

Forums

Tab selected not working (1 post)

  1. Kettercat
    Member
    Posted 2 years ago #

    I'm trying to set up a tabs menu at the top of the page. Problem is, even when I click on the link, the tab itself isn't selected (I want to change the background color to #ff3300).

    This is the code I use on header.php:

    <ul class="cat-nav">
    <li class="tab">Test 1
    <li class="tab">Test 2

    And this is the style.css code. I've tried differet things but none of them work:

    .cat-nav {list-style:none; padding-right:0; width:100%;}
    .cat-nav li {position:relative;display:block; width: 126px; background:#59aaf2; float:right; margin-left:1px; height:42px; line-height:42px;; text-align:center;}
    .cat-nav li a {color:white !Important; font-size:14px;}
    .cat-nav .tabselected {background:#ff3300;}

    .cat-nav .current_page_item {
    background:#ff3300;}

    .current-cat {
    background #ff3300;
    }

    What am I doing wrong?

    Thanks :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags