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;
}
}p.normal {
background-position : 150px 8px;
}
p.active {
background-position : 4px 8px;
}
Also in CSS:
- loop scss
- how to change jumbotron size
- how rotate infinity css
- line break inside content css
- do some css using js on selector
- a no line css
- select third element of an id css
- à quoi sert clearfix
- css calss
- como fazer listrada css
- css two attribute selector
- jquery add external css to head
- bootstrap badge color
- input uppercase with css
- how to specify amout of letters in inputfield in css
- adding background image css
- how to play css animation with javascript
- css center div
- vue scss
- how to make text not highlightable css
- javascript set css calss
- how many fonts can i add in a css font-face
- css flex property
- css color gradient background full height