Div Hover Background-color Change?
How can I make it act as if a line of div is anchor so when I hover on it it returns to red CSS .e { width:90px; border-right:1px solid #222; text-align:center; flo
Solution 1:
.e:hover{
background-color:#FF0000;
}
Solution 2:
if you want the color to change when you have simply add the :hover
pseudo
div.e:hover {
background-color:red;
}
Solution 3:
Solution 4:
<html><head><style>.e {
width:90px;
border-right:1px solid #222;
text-align:center;
float:left;
padding-left:2px;
cursor:pointer;
}
e2:hover {
background-color:red;
}
</style></head><body><div><divclass="e e2" >Company</div><divclass="e e2">Target</div><divclass="e e2"style="border-right:0px;">Person</div></div></body></html>
Post a Comment for "Div Hover Background-color Change?"