2016-10-03 7 views
-1

einen Hover-Zustand auf meinem Haupt-Box-Element hinzugefügt, ich es innen wenden weißwürde ich ein Element schweben wie andere Elemente beeinflussen css

dies ist das wichtigste Element grau und der Text drehen wollen: .blogcont

es gibt 2 weitere Elemente in ihr, die ein h4 und ein anderer Text div sind: .listing

ich möchte die Schriftfarbe des h4 und die anderen div weiß auf Hover-Zustand ändern auf .blogcont

Antwort

2

Hoffe, das hilft!

.blogcont { 
 
    width: 300px; 
 
    height: 300px; 
 
    background: red; 
 
    color: black 
 
} 
 
.blogcont:hover { 
 
    background: grey; 
 
} 
 
.blogcont:hover h4, 
 
.blogcont:hover .listing { 
 
    color: white 
 
}
<div class="blogcont"> 
 
    <h4>hellooo</h4> 
 
    <div class="listing">listingggg</div> 
 
</div>

+0

perfekt Dank! @ Pranesh – tea93

+0

getan @ Pranesh RAVI – tea93

Verwandte Themen