I wanted to modify the :focus
status of an HTML element from the HTML tag itself. Let me explain, for example I can define the styles on the label itself:
<div style='background: grey'>
</div>
That in CSS would be equivalent to putting:
div {
background: grey;
}
The problem is that I do not know how to modify the styles with the attributes :focus
or :hover
. In CSS I know what would be the following:
div:hover {
color: white;
}
I'm trying with:
onmouseover="this.style.boxShadow=inset 0 1px 1px #C27279;"
I can not get the new style to show.