Hello,
I have a box that on hover it changes color. That works great but if I want to also change the text element inside the box the code doesn’t work.
This is the code that works:
#lp-pom-box-203:hover {
background: #00865a;}
#lp-pom-box-203:hover {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;}
but as soon as I add a CSS combinator (+ ~ >) it stops working:
#lp-pom-box-203:hover + #lp-pom-text-32 {
background: #00865a;
color: #000000;}
#lp-pom-box-203:hover {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;}
I based my code out of this page
http://unbouncepages.com/link-hover/