T
T
Taras Parashchuk2018-03-28 19:48:16
css
Taras Parashchuk, 2018-03-28 19:48:16

Highlight border of inner div and outer div on mouseover?

5abbc642c55f7587025645.jpeg
You need to do this in bootstrap.
It seems to work, but the border of the outer div and the inner div are not included at the same time.
How can I make them change color at the same time.

spoiler
<div class="row">
                   <div class="col-sm-4  text-left">
                       <div class="box2 mb-1 d-flex ">
                           <div class=" iconx align-self-center">
                           </div><div class="iconx-text  align-self-center"><p class="icaption">30 Років Досвіду</p>Вже давно відомо, що читабельний зміст буде заважати зосередитись людині, яка оцінює композицію сторінки.</div>
                       </div>
                   </div> 
</div>

.iconx{
        width:60px;
        height:60px;
        background: #fafafa;
        top:65px;
       
   }

.iconx:hover{
       
        background:   #fac012;
   }
   
   .iconx-text{
      margin-left:20px;
      width:280px;
      text-align:left;
      color:#afafaf;
      font-size:1em;
   }

   .icaption{
    font-size:1.25em; 
    color:black;
   }
.box2 {

      width:370px;
      height:190px;
      border: 2px solid  #fafafa;
      background:white;
     
}
       .box2:hover{
        border-color: #fac012;
                }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Taras Parashchuk, 2018-03-28
@taras1978

I already understood that jquery is indispensable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question