Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 4: Can't Change Card Header Properties

In the style.css, I have set

.card-header {
  background-color: transparent; 
  border-color: transparent;
}

and changed

<div class="card-header" style="background-color: transparent; border-color: transparent;">
    <div class="card-title">about</div>
</div>

to

<div class="card-header">
    <div class="card-title">about</div>
</div>

But it still outputs

card-header

What could be preventing this from changing? I know the style.css is placed properly because I can change other properties such as

.card-text {
padding: 2% 2% 2% 2%;
}

and those changes go into effect.

like image 470
Sentient Avatar asked Aug 14 '17 21:08

Sentient


Video Answer


2 Answers

Found the answer. To edit .card-header,

.card .card-header {
  background-color: transparent; 
  border-color: transparent;
}
like image 156
Sentient Avatar answered Sep 28 '22 09:09

Sentient


you can use like this :

<div class="card-header bg-purple">
like image 20
tohid badri Avatar answered Sep 28 '22 09:09

tohid badri