Boards of Canada
Member
I have a DIV that looks like this:
<div id="event">
<img src="blah.jpg">
</div>
And my CSS looks like this:
#event { width:160px; float:left; background:#fff; margin:0 10px 10px 0; text-align:center; box-shadow:0 1px 5px rgba(0,0,0,0.2); }
#event:hover { background: linear-gradient(top, #494949 0%,#1d1d1d 100%); color: #fff; }
How do I make it so when I hover, I can do something to the image, like add a box-shadow or something. I tried #event:hover > div, but that didn't do it.
<div id="event">
<img src="blah.jpg">
</div>
And my CSS looks like this:
#event { width:160px; float:left; background:#fff; margin:0 10px 10px 0; text-align:center; box-shadow:0 1px 5px rgba(0,0,0,0.2); }
#event:hover { background: linear-gradient(top, #494949 0%,#1d1d1d 100%); color: #fff; }
How do I make it so when I hover, I can do something to the image, like add a box-shadow or something. I tried #event:hover > div, but that didn't do it.