Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
Can anybody tell me why my css doesnot work? my tab does not change color when i click it even though i have given a different in acive and visited in css. I do not know much CSS so can some body help me n tell me where i am going wrong? pasting my css here.....the css for tabs is after primary layout....
/* DEFAULTS
----------------------------------------------------------*/
body
{
    background: #b6b7bc;
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px 0px 0px 1px;
    padding: 0px;
    color: #696969;
    height: 55px;
}
a:link, a:visited
{
    color: #034af3;
}
a:hover
{
    color: #1d60ff;
    text-decoration: none;
}
a:active
{
    color: #034af3;
}
p
{
    margin-bottom: 10px;
    line-height: 1.6em;
}


/* PRIMARY LAYOUT ELEMENTS
----------------------------------------------------------*/
.page
{
    width: 960px;
    background-color: #fff;
    margin: 20px auto 0px auto;
    border: 1px solid #496077;
}
.header
{
    position: relative;
    margin: 0px;
    padding: 0px;
    background: #4b6c9e;
    width: 100%;
    top: 2px;
    left: 0px;
    height: 120px;
}
.header h1
{
    font-weight: 700;
    margin: 0px;
    padding: 0px 0px 0px 20px;
    color: #f9f9f9;
    border: none;
    line-height: 2em;
    font-size: 2em;
}
.main
{
    padding: 0px 12px;
    margin: 12px 8px 8px 8px;
    min-height: 420px;
}
.leftCol
{
    padding: 6px 0px;
    margin: 12px 8px 8px 8px;
    width: 200px;
    min-height: 200px;
}
.footer
{
    color: #4e5766;
    padding: 8px 0px 0px 0px;
    margin: 0px auto;
    text-align: center;
    line-height: normal;
}


/* TAB MENU
----------------------------------------------------------*/
div.hideSkiplink
{
    background-color:#3a4f63;
    width:100%;
    height: 36px;
}
div.menu
{
    padding: 4px 0px 4px 8px;
}
div.menu ul
{
    list-style: none;
    margin: 0px;
    padding: 0px;
    width: auto;
}
div.menu ul li a, div.menu ul li a:visited
{
    background-color: #465c71;
    border: 1px #4e667d solid;
    color: #dde4ec;
    display: block;
    line-height: 1.35em;
    padding: 4px 20px;
    text-decoration: none;
    white-space: nowrap;
}
div.menu ul li a:hover
{
    background-color: #bfcbd6;
    color: #465c71;
    text-decoration: none;
}
div.menu ul li a:active
{
    background-color: #465c71;
    color:#cfdbe6;
    text-decoration: none;
}


Thank you.
Posted
Updated 6-Apr-11 14:01pm
v4
Comments
ROHANCV 6-Apr-11 1:00am    
can you post ur HTMl part...that will give more idea..
Steven.Pinto2000 29-Apr-11 7:27am    
Nee Html code

1 solution

hey there
have you tryed
CSS
a, a:visited

insted of
CSS
a:link, a:visited

?

jrop
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900