neonWired
09 Feb 2010, 06:40 AM
i have this CSS rule which works fine:
#upperPanel a {
display: block;
width: 100%;
text-align: center;
height: 40px;
font-size: 16px;
font-weight: bold;
margin: 12px 0;
}
but if i make the rule using pseudo-classes the entire rule is ignored. Why?
#upperPanel a:link, #upperPanel a:hover, #upperPanel a:active, #upperPanel a:visted {
display: block;
width: 100%;
text-align: center;
height: 40px;
font-size: 16px;
font-weight: bold;
margin: 12px 0;
}
#upperPanel a {
display: block;
width: 100%;
text-align: center;
height: 40px;
font-size: 16px;
font-weight: bold;
margin: 12px 0;
}
but if i make the rule using pseudo-classes the entire rule is ignored. Why?
#upperPanel a:link, #upperPanel a:hover, #upperPanel a:active, #upperPanel a:visted {
display: block;
width: 100%;
text-align: center;
height: 40px;
font-size: 16px;
font-weight: bold;
margin: 12px 0;
}