0

I'm new to salesforce lightning & trying to make responsive design by media queries like this

@media  all and (max-width : 1280px) 
{
 .THIS .columngap {    
     color : red;
    }
}

div class="columngap">
     Contact Us
 </div> 

it's nt showing angular bracket

so I keep getting error in inspect that mime type is nt supported & strict MIME checking is enabled SO can anyone pls tell me how can i resolve it.

0

In Aura, to target a top-level element with CSS, you specifically need to not include a gap between .THIS and the next class. In other words, your CSS was wrong, it should read:

@media  all and (max-width : 1280px) 
{
 .THIS.columngap {    
     color: red;
    }
}
2
  • Hi There, I tried your way and didn't give any gap but it is still nt workin. Jun 18 at 4:33
  • @Rahultiwari I don't think we have enough information to help you, then. It works in my org...
    – sfdcfox
    Jun 18 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.