1

i Have used bootstrap and css , here is my code

<div class = "row" id="parent"=>

  <div class="col-md-8" id="ClildDiv1">

  //Some Content

</div>

<div class="col-md-4" id="ChildDiv2" style="display:none">

  //Some Content

<div>

</div>

Now i want on hover on <div class="row Parent> All its Child should be visible in this case <div class="col-md-4 ChildDiv2">

Any Help Would Be Appreciated And i want to achieve that only by CSS styling

angular.aditya
  • 115
  • 1
  • 1
  • 10

1 Answers1

5

You want one of the sibling selectors. General sibling ~ or next sibling +

.ClildDiv1:hover ~ .ChildDiv2 {
    display: block;
}

See fiddle here

Or, the parent hover for any child div would be

.Parent:hover > div {
  display: block;
}
sn3ll
  • 1,629
  • 1
  • 10
  • 16