1 reply [Last post]
netiyo
netiyo's picture
Offline
newbie
Last seen: 7 weeks 6 days ago
Timezone: GMT+1
Joined: 2022-12-07
Posts: 1
Points: 2

Hello,

I am trying to figure out why something like this works:

a:hover.test {
color: violet;
}

But something like this doesnt:

p.test{
margin: 0;
}

Is this because the a tag is special with it comes to things like hover focus etc...

Thanks for your help

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 22 hours 58 min ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2057
Points: 2289

CSS has little meaning

CSS has little meaning without the accompanying HTML. Could you post the rest of the code or maybe a link to a page with this issue?