Home:ALL Converter>Change color of icon when hovering over div in which it is contained

Change color of icon when hovering over div in which it is contained

Ask Time:2020-01-15T03:31:48         Author:Shane

Json Formatter

How can I invert the color of the icon fa fa-clipboard when hovering over the wrap div?

<div class="col-lg-6 mbr-col-md-10">
    <div class="wrap">
        <div class="ico-wrap">
            <span class="mbr-iconfont fa fa-clipboard"></span>
        </div>
    </div>
</div>

This will invert the color of the clipboard icon when I hover over the icon itself, but I need it to invert when hovering over the div above it. The default color is black.

.mbr-iconfont:hover {
  color: white !important;
}

Author:Shane,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59740562/change-color-of-icon-when-hovering-over-div-in-which-it-is-contained
You Nguyen :

Try this syntax:\n\n\r\n\r\n.outer:hover .inner {\r\n color: red;\r\n}\r\n<div class=\"outer\">\r\n <span class=\"inner\">Lorem</span>\r\n</div>",
2020-01-14T19:36:01
yy