I have the following: http://jsfiddle.net/2hDB9/
How can I make it so that:
- if you hover over
Line 1, it shows the border for justLine 1 - if you hover over
Line 2, it shows the border for justLine 2, not both
HTML:
<div class="container">
<div class="box">
Line 1.
<div class="box">
Line 2.
</div>
</div>
</div>
CSS:
.container {
width: 500px;
}
.box {
padding: 12px;
border: 1px solid grey;
}
.box:hover {
border-color: red;
}
Line 1outside of 2 thatLine 1gets the color?hoverfunction.