0

'primary-bg' is user data whereas opacity is static.
How can i set the opacity of background color only using css only.

<div class="tab-content primary-bg">
    <div class="tab-pane">XYZ</div>
</div>

.primary-bg{
   background-color: rgb(13, 148, 244);
}

.tab-content{
   //background-color opacity set to 10%
}
Sushan
  • 3,153
  • 2
  • 23
  • 21

0 Answers0