Files
Nicholas Carrigan (he/him) 06651d7043 chore: rename ferris wheel (#44213)
* chore: rename files

* chore: update codebase

* chore: proper title case
2021-11-19 21:38:19 -06:00

1.7 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
6140cdebd39d6a101e747529 Step 6 0 step-6

--description--

Create a selector for your .line elements. Start by setting the background-color to black, the width to 50%, and the height to 2px.

--hints--

You should have a .line selector.

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

Your .line selector should have a background-color property set to black.

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

Your .line selector should have a width property set to 50%.

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

Your .line selector should have a height property set to 2px.

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

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title> Learn CSS Animations by Building a 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--