Advertisement
Guest User

Dmitry

a guest
Mar 18th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. Тема: Расширенные возможности HTML
  2. Урок 5. Модификаторы в БЭМ
  3. Задача 2/4 Переименуем наш самый сложный блок
  4.  
  5.  
  6. Тренажер выдает: Элемент c классом ”.intern__column_multi-item” не вложен внутрь блока section с классом "intern".
  7. Вроде вложен, или в БЕМ нельзя писать два класса в одних скобках, ПОМОЖЕТЕ ПОНЯТЬ В ЧЁМ Я ОШИБАЮСЬ?
  8.  
  9.  
  10.  
  11. HTML
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <meta charset="UTF-8">
  16. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  17. <meta name='description' content='портфолио Дмитрий Ковегин на Яндекс Практикуме'>
  18. <meta name="keywords" content="html, css">
  19. <meta name="author" content="Dmitry Kovegin">
  20. <link rel="icon" href="https://pictures.s3.yandex.net/favicon.png">
  21. <link rel="stylesheet" href="normalize.css">
  22. <link rel="stylesheet" href="style.css">
  23. <title>Портфолио</title>
  24. </head>
  25. <body>
  26.  
  27. <header class="header">
  28. <a href="#" class="header__link" lang='en'>Dmitry Kovegin</a>
  29. </header>
  30.  
  31. <nav class="menu">
  32. <a href="#" class="menu__link">Введение в профессию</a>
  33. <a href="#" class="menu__link">HTML & CSS Intern</a>
  34. <a href="#" class="menu__link">HTML & CSS Pro</a>
  35. </nav>
  36.  
  37. <main class="main">
  38.  
  39. <section class="beginner">
  40. <div class="beginner__beginner-project_first-code"></div>
  41. <div class="beginner__beginner-project_design-principles"></div>
  42. </section>
  43.  
  44. <section class="intern">
  45. <div class="intern__intern-column intern__intern-column_multi-item">
  46. <div class="intern__intern-project-block intern__intern-project-block_two-projects">
  47. <div class="intern__intern-project intern__intern-project_first-project"></div>
  48. <div class="intern__intern-project intern__intern-project_second-project"></div>
  49. </div>
  50. <div class="intern__intern-project-block intern__intern-project-block_one-project"></div>
  51. </div>
  52. <div class="intern__intern-column intern__intern-column_single-item"></div>
  53. </section>
  54.  
  55. <section class="pro">
  56. <div class="pro-project first-pro-project"></div>
  57. <div class="pro-project second-pro-project"></div>
  58. <div class="pro-project third-pro-project"></div>
  59. </section>
  60.  
  61. </main>
  62.  
  63. <footer class="footer">
  64. <div class="footer__logo"></div>
  65. </footer>
  66.  
  67. </body>
  68. </html>
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75. CSS:
  76.  
  77. body {
  78. font-family: 'Cormorant Garamond';
  79. background-color: #FEFEFE;
  80. }
  81.  
  82. .header {
  83. height: 95px;
  84. display: flex;
  85. }
  86.  
  87. .header__link {
  88. margin: auto;
  89. font-size: 28px;
  90. text-decoration: none;
  91. color: #10191E;
  92. }
  93.  
  94. .beginner_beginner-project {
  95. width: 636px;
  96. height: 430px;
  97. background-position: center;
  98. background-size: cover;
  99. }
  100.  
  101. .beginner__beginner-project_first-code {
  102. background-image: url(https://pictures.s3.yandex.net/cat.png);
  103. }
  104.  
  105. .beginer__beginner-project_design-principles {
  106. background-image: url(https://pictures.s3.yandex.net/designPrinciples.png);
  107. }
  108.  
  109. .beginner {
  110. display: flex;
  111. justify-content: space-around;
  112. flex-wrap: wrap;
  113. margin-bottom: 25px;
  114. }
  115.  
  116. .intern__intern-column {
  117. width: 636px;
  118. height: 557px;
  119. background-size: cover;
  120. background-position: center;
  121. display: flex;
  122. }
  123.  
  124. .intern__intern-column_single-item {
  125. background-image: url(https://pictures.s3.yandex.net/coming_soon_3.png);
  126. }
  127.  
  128. .intern {
  129. display: flex;
  130. flex-direction: row-reverse;
  131. justify-content: space-around;
  132. flex-wrap: wrap;
  133. margin-bottom: 25px;
  134. }
  135.  
  136. .intern__intern-project-block_one-project {
  137. width: 636px;
  138. height: 240px;
  139. background-image: url(https://pictures.s3.yandex.net/coming_soon_4.png);
  140. background-size: cover;
  141. background-position: center;
  142. }
  143.  
  144. .intern__intern-project {
  145. width: 306px;
  146. height: 290px;
  147. background-size: cover;
  148. background-position: center;
  149. }
  150.  
  151. .intern__intern-project_first-project {
  152. background-image: url(https://pictures.s3.yandex.net/coming_soon_5.png);
  153. }
  154.  
  155. .intern__intern-project_second-project {
  156. background-image: url(https://pictures.s3.yandex.net/coming_soon_6.png);
  157. }
  158.  
  159. .intern__intern-project-block_two-projects {
  160. display: flex;
  161. }
  162.  
  163. .intern__intern-column_multi-item {
  164. flex-direction: column-reverse;
  165. justify-content: space-between;
  166. }
  167.  
  168. .intern__intern-project-block {
  169. justify-content: space-between;
  170. }
  171.  
  172. .menu {
  173. display: flex;
  174. justify-content: center;
  175. height: 75px;
  176. align-items: center;
  177. }
  178.  
  179. .pro {
  180. display: flex;
  181. justify-content: space-evenly;
  182. align-items: flex-end;
  183. flex-wrap: wrap;
  184. }
  185.  
  186. .pro-project {
  187. width: 306px;
  188. height: 290px;
  189. background-size: cover;
  190. background-position: center;
  191. }
  192.  
  193. .first-pro-project {
  194. background-image: url(https://pictures.s3.yandex.net/coming_soon_9.png);
  195. order: 3;
  196. align-self: center;
  197. }
  198.  
  199. .second-pro-project {
  200. background-image: url(https://pictures.s3.yandex.net/coming_soon_8.png);
  201. order: 2;
  202. align-self: center;
  203. flex-basis: 636px;
  204. }
  205.  
  206. .third-pro-project {
  207. background-image: url(https://pictures.s3.yandex.net/coming_soon_7.png);
  208. order: 1;
  209. align-self: center;
  210. }
  211.  
  212. .footer {
  213. height: 95px;
  214. display: flex;
  215. }
  216.  
  217. .footer__logo {
  218. width: 145px;
  219. height: 25px;
  220. background-image: url(https://pictures.s3.yandex.net/logo_black.png);
  221. background-size: contain;
  222. background-repeat: no-repeat;
  223. background-position: center;
  224. margin: auto;
  225. }
  226.  
  227. .main {
  228. max-width: 1330px;
  229. margin: auto;
  230. }
  231.  
  232. .menu__link {
  233. margin-right: 10px;
  234. font-size: 18px;
  235. text-decoration: none;
  236. color: #10191E;
  237. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement