Answers for "style appear on if condition css"

CSS
3

how to write if condition in css

$type: monster;
p {
  @if $type == ocean {
    color: blue;
  } @else if $type == matador {
    color: red;
  } @else if $type == monster {
    color: green;
  } @else {
    color: black;
  }
}
Posted by: Guest on June-29-2020

Browse Popular Code Answers by Language