For example, when classes are installed close to each other, the code works differently. Example:
.sb_header.button_cont will work differently than
.sb_header .button_cont For example, when classes are installed close to each other, the code works differently. Example:
.sb_header.button_cont will work differently than
.sb_header .button_cont In the first case, with notation without a space, the styles will be applied to the element that has both the sb_header and button_cont , and in the second, when class names are separated by a space, to the element with the button_cont class, which is a descendant of the element with the sb_header class.
The space when declaring styles, along with > ,, and others, is an operator .
Source: https://ru.stackoverflow.com/questions/726343/
All Articles