+ 1
Hi😀! Who can explain me, what doe's it mean in CSS, signs: '@' and '#x27; before the words (like: @font-face) ???😓
CSS
3 ответов
+ 5
is used for define rule
more info
https://stackoverflow.com/questions/3453257/what-is-the-purpose-of-the-symbol-in-css
+ 3
Not sure what $ you mean
So I think it is css selector
html:
<div w1="w23">ha</div><br>
<div w1="w22">ha</div>
css:
div[w1 $="22"]{
color:red;
}
second div text will be changed to red because of attribute value ending with "22"
//$= is for select that ending with that characters
@ for define rule yes
but if @media rule query this also take logical stuff
Understand how to use it well by clicked this link
https://goo.gl/MB38LW
+ 1
I've only seen it with @media but according to Mozilla it is the beginning of setting certain conditions.
https://developer.mozilla.org/en-US/docs/Web/CSS/At-rule