freeCodeCamp/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-css-animation-by-buil.../6140cdebd39d6a101e747529.md

1.7 KiB

id title challengeType dashedName
6140cdebd39d6a101e747529 Passo 6 0 step-6

--description--

Crie um seletor para os elementos .line. Comece definindo a background-color para black, width para 50% e height para 2px.

--hints--

Você deve ter um seletor .line.

assert(new __helpers.CSSHelp(document).getStyle('.line'));

O seletor .line deve ter a propriedade background-color definida como black.

assert(new __helpers.CSSHelp(document).getStyle('.line')?.backgroundColor === "black");

O seletor .line deve ter a propriedade width definida para 50%.

assert(new __helpers.CSSHelp(document).getStyle('.line')?.width === "50%");

O seletor .line deve ter a propriedade height definida como 2px.

assert(new __helpers.CSSHelp(document).getStyle('.line')?.height === "2px");

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Ferris Wheel</title>
    <link rel="stylesheet" href="./styles.css">
  </head>
  <body>
    <div class="wheel">
      <span class="line"></span>
      <span class="line"></span>
      <span class="line"></span>
      <span class="line"></span>
      <span class="line"></span>
      <span class="line"></span>

      <div class="cabin"></div>
      <div class="cabin"></div>
      <div class="cabin"></div>
      <div class="cabin"></div>
      <div class="cabin"></div>
      <div class="cabin"></div>
    </div>
  </body>
</html>
.wheel {
  border: 2px solid black;
  border-radius: 50%;
  margin-left: 50px;
  position: absolute;
  height: 55vw;
  width: 55vw;
  max-width: 500px;
  max-height: 500px;
}

--fcc-editable-region--

--fcc-editable-region--