R
rbaulbin
Hello -
Question for anyone. With the following CSS:
..menu a:active
{
background-color: #F6D566;
color: #CC00CC;
}
Why won't this HTML work:
<a class="menu" href="#wherever"> This is a paragraph.</a>
But this does:
<div class="menu">
<a class="menu" href="#wherever"> This is a paragraph.</a>
</div>
Why does it need the div? If you write the CSS as a.menu:active
or .menu:active, it works.
Question for anyone. With the following CSS:
..menu a:active
{
background-color: #F6D566;
color: #CC00CC;
}
Why won't this HTML work:
<a class="menu" href="#wherever"> This is a paragraph.</a>
But this does:
<div class="menu">
<a class="menu" href="#wherever"> This is a paragraph.</a>
</div>
Why does it need the div? If you write the CSS as a.menu:active
or .menu:active, it works.