How can I make it act as if a line of div is anchor so when I hover on it it returns to red
.e { width:90px; border-right:
.e:hover{ background-color:#FF0000; }
div hover background color change
Try like this:
.class_name:hover{ background-color:#FF0000; }
if you want the color to change when you have simply add the :hover pseudo
:hover
div.e:hover { background-color:red; }