+ 4

How can we highlight a region of webpage on hovering mouse over it

4th Jun 2017, 4:51 PM
Arunima Anand
Arunima Anand - avatar
2 odpowiedzi
+ 9
No need of JQuery neither JS... just do it with Css pseudo-selector ':hover': <div class="highlight">some content</div> <style> .highlight:hover { /* set style as you want to highlight the element... for example: */ background:yellow; } </style> (pseudo-selector cannot be define as inlined 'style' attribute)
4th Jun 2017, 8:00 PM
visph
visph - avatar
0
learn css
4th Jun 2017, 5:05 PM
Roland Doctor
Roland Doctor - avatar