FreeCodeCamp-SLC / utahjs-gatsby

UtahJS is a nonprofit organization dedicated to community and JavaScript
https://utahjs.com
BSD Zero Clause License
5 stars 11 forks source link

Develop the footer component to be mobile responsive. #84

Closed AlexanderPuhl closed 3 years ago

AlexanderPuhl commented 3 years ago

When we get down to about 415px, the text in the footer starts to break onto the next line. Here is an image of the problem.

image

Add some styling to center that text like this...

image

Make text-align: center the default, but then add the media query

@media (min-width: 415px) {}

and inside there, style the text to align left once the screen sizes gets to be above 415 pixels. This approach is called mobile first which means all default styles are for mobile styles and then as the screen grows we change the style to adapt.