How does css apply its style properties

DavidC

New Member
Shouldn't the css style be changed permanently once it gets applied?see below:\[code\] <style>div{width:100px;height:100px;background-color:red}div:hover{background-color:black}</style><body><div></div></body>\[/code\]I mean to say that when \[code\]hover\[/code\] occurs on the element the background color of the element gets changed, and once changed it should be changed permanently because the hover state has changed the property of the element.i also have seen the cases which have permanently changed the property
 
Back
Top