TransWikia.com

Change one property in CSS

Stack Overflow Asked by Darek on November 22, 2021

I have this CSS style:

.bx--text-area:disabled {
    position: relative;
    border: none;
    padding: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    pointer-events: none;
    background: #e5e5e5;
    color: black;
    height: 6.25rem;
}

And I want to change just the color property without copy-pasting the whole style in to my css stylesheet.

How can I do that? Is that possible?

2 Answers

try

.body{
  color:black;
     }

Answered by Himanshu Bhardwaj on November 22, 2021

You can add common class to elements and add other class with specific property for that

.commanClass
{
  height:100vh;
  width:100%;
}

.bg1
{
  background: red;
}
.bg2
{
  background: blue;
}
<div class="commanClass bg1">  
</div>

<div class="commanClass bg2">  
</div>

Answered by Ferin Patel on November 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP