Below is my CSS code:
.wrapper {
display: inline-block;
margin-top: 60px;
padding: 15px;
width: 100%;
}
I am looking to create a new class that inherits all the properties from wrapper
and only changes the width
property:
.wrapper .extended {
width: 150% !important;
}
I attempted to use this in my HTML like so:
<section class="wrapper extended">
Unfortunately, this approach did not work as expected.
Could someone provide guidance on how to correct my code?