Skip to content

Tag: hover

JS blocks or overrides CSS style

I have a div with it’s style class. I define it’s style as follow. And in JS I define a method for a click event. The CSS style and the event do what is expected. The problem is when I hover the div again after the event. The properties height and width don’t grow to fill the screen. It&#821…