Your Fortune For Today

 

Objective:

Create an app that displays a random fortune and a button to dispense more fortunes.

Problem:

How do we the app on the center of the screen vertically?

Solution:

We created a function that gets the height of the window using the inner height function and assigning a new margin to the top of the app to force it to go down to the center.