0

  @mixin text($color,$font-size){
   color:$color;
   font-size: $font-size;
 }

div{
  h3{
     @include text(#000,15px)
  }
}

div{
  h1{
   
    div > h3 @extend h3
  }
}

Here, I use one mixin class inside div > h3 and next I want to use the same class in another div > h1. How can I use it?

5
  • can u plz send the html code? Feb 11, 2020 at 9:11
  • Are you using .css or .scss? Because nesting css only works within .scss files.
    – Mr. Jo
    Feb 11, 2020 at 9:30
  • sir i am using .scss in Angular 8
    – kalpesh
    Feb 11, 2020 at 9:58
  • @Manikandan2811 sir i try to put my code here
    – kalpesh
    Feb 11, 2020 at 9:58
  • @kalpesh ok.. but i need code structure to elaborate.. Feb 11, 2020 at 10:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.