What is ".foo {}" at the beginning of a stylesheet?

I would like to know what ".foo {}" means

It is placed at the beginning of the CSS stylesheet that I have modified.

+2


a source to share


3 answers


It's just a CSS block modifying a class foo

.



So, each tag in the HTML file class="foo"

will depend on that CSS block, which in your case does nothing with what you posted.

+6


a source


all class elements foo

are styled between curly braces after this (none)



+1


a source


Applies the style to any HTML element with class "foo".

NTN.

-4


a source







All Articles