html - Having trouble keeping hyperlink style specific to one class/ id -
i want apply different hyper link style following 2 things:
- any links within
<p>
tags in#currentpage_content
div id. - any links
<h3>
tags.profile
class.
it sounds pretty simple can't see right..
i've tried things like:
#currentpage_content a:hover{...}
and
#currentpage_content p a:hover{...}
but reason applied navigation bar links though they're outside #currentpage_content's div!
i figured out ( think)..
#currentpage_content a.p:hover{...}
but link style aren't being applied @ when should be.
could please @ bullet points above , tell me exact syntax/order of words need achieve 2 bullet points?
to make response easier here's style i'm trying apply:
a:link, a:visited, a:hover, a:active { font: inherit; color: grey; text-decoration: none; border-bottom: 2px solid #d4ffaa; } a:hover, a:active {background-color: #d4ffaa;}
here fiddle solution trouble.
Comments
Post a Comment