Home css строка не найдена

строка не найдена

Author

Date

Category

There is a .sass code, no braces {}

. Header
 Display: Flex.
 Justify-Content: Space-Between
.nav
 Display: Flex.
 FLEX-DIRECTION: Column
 Align-Items: Center
 Justify-Content: Space-Between

How to make nesting without using {} so it worked?


Answer 1, Authority 100%

For nesting, use the ampersand & amp sign;
For SCSS:

. Header {
  Display: Flex.
  Justify-Content: Space-Between
   & amp; .nav {
   Display: Flex.
   FLEX-DIRECTION: Column
   Align-Items: Center
   Justify-Content: Space-Between
   }
  }

for sass:

. Header
 Display: Flex
 Justify-Content: Space-Between
 & amp; .nav.
  Display: Flex
  FLEX-DIRECTION: Column
  Align-Items: Center
  Justify-Content: Space-Between

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions