Using Before / After + Positioning

Note that you should not need to touch the builder / html for these exercises.

CHALLENGE 1

Review Warm Up

Use a before or after element to add an underline to this link. Animate the underline on hover. The class on the link is “underline-link.” The blue color is #0974b2 and the green hover color is #64b730:

Styled Link

Overlap the lemon block on top of the image below. Position it half on / half off the bottom right hand corner. The lemon block has the class name “lemon-block” and has been set to a width of 25% in the builder. Note that both images have margins removed and are in their own row container (which has a relative tag).

CHALLENGE 2

Lemonade Stand Home Page

The Lemonade Stand homepage presents an interesting challenge. It looks a lot like a graphic that we might make in Photoshop, but we need to preserve the capabilities of running a video within the graphic. To do this, we can use the video features of a banner and combine it with absolute positioning. Complete the following tasks:

  • Overlap the elements. The top graphic’s class is “slashes,” the second graphic (square with lemon) is called “lemon-square,” the video banner is called “lemon-video,” and the grow svg is called “text-overlay”
  • Make sure all the graphics will scale with the screen size.
  • Round the edges of the banner (top left and bottom right stay pointed, top right and bottom left are rounded)
  • Add a shadow to the video

CHALLENGE 3

Custom Clickable Cards

Click me!
Click me!
Click me!