As the title says, I want to make it so when your mouse goes over a div, the background color will change..., However, I can not use JS for this, needs to be 100% CSS, now im hopeing theres another way to do this, but so far, ive been told of one way (and I cant even get that to work) its as follows, I make a div like this
now my Css for jcustom is as follows.
Now get this, when your mouse goes over a link, the links backgound turns white -_-, when you go over the DIV (that is a link.. you can see your mouse turn into a link click) that background does not change color...any ideas??
ps: you can see what I mean here
| Code: |
|
<a href="http://m-productions.deviantart.com"><div class="jcustom">The following is a test for my new layout, please do no look at this box.</div></a> |
now my Css for jcustom is as follows.
| Code: |
|
.journalbox .journaltext .jcustom { margin: 0px 1px 0px 1px !important; background-color: #414141 !important; color: #222222 !important; font-size: 13px !important; padding: 0px 15px 15px 15px !important; display: block !important; border-style: dashed !important; border-width: 1px 1px 1px 1px !important; border-color: #222222 !important; width: auto !important; } .journalbox .journaltext .jcustom a { } .journalbox .journaltext .jcustom a:hover { background-color: #FFFFFF !important; } |
Now get this, when your mouse goes over a link, the links backgound turns white -_-, when you go over the DIV (that is a link.. you can see your mouse turn into a link click) that background does not change color...any ideas??
ps: you can see what I mean here
