challenges

Flexercise #2

Here is a layout that might be a footer on a web site. Your goal is to add flexbox styles to match this layout (play the video to see how the styles change as the viewport width changes):

For still-image reference, here’s the view at viewport widths of 450px and wider:

and the view at viewport widths of less than 450px:

This is an editable sandbox — try making changes and the preview will update! You can drag the center divider to make the preview pane larger or smaller.

<!DOCTYPE html>
<html lang="en">
<head>
<style>
html, body {
height: calc(100% - 8px);
}
body {
background-color: #222222;
color: #dddddd;
font-family: sans-serif;
}

a {
all: unset;
text-decoration: underline;
}
a:hover {
color: #999999;
}

p {
margin: 0.25rem 0;
}

.footer {
width: 100%;
background-color: #33699e;
padding: 1rem;
box-sizing: border-box;
/* add flex styling here */
}

@media (min-width: 450px) {

Here are a few resources that may help: