Can't get flexbox to vertically justify elements

Can't get flexbox to vertically justify elements

I'm just starting to learn HTML/CSS and I can't get flexbox to vertically justify elements (or do much of anything at all). I'm having trouble conceptually understanding why it's not recognizing the elements as separate elements to justify.

I'm just starting to learn HTML/CSS and I can't get flexbox to vertically justify elements (or do much of anything at all). I'm having trouble conceptually understanding why it's not recognizing the elements as separate elements to justify.

CSS and HTML:

.box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.odd-elements { margin: auto; width: 100px; height: 100px; border-top-width: 1px; border-top-color: #687291; border-top-style: solid; text-align: center; background-color: #dfe1e7; }

.even-elements { margin: auto; width: 100px; height: 100px; border-top-width: 1px; border-top-color: #687291; border-top-style: solid; text-align: center; background-color: #eeeff2; }

#e6 { margin: auto; width: 100px; height: 100px; border: 4px solid black; text-align: center; vertical-align: middle; line-height: 100px; background-color: #687291; } <!DOCTYPE html> <html lang="en">

<head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="styleA.css" /> <title>CS142 Project #1</title> </head>

<body> <div class="box"> <span class="odd-elements">A</span> <span class="even-elements">B</span> <span class="odd-elements">C</span> <span class="even-elements">D</span> <span class="odd-elements">E</span> <span id="e6">F</span> </div> </body>

</html>


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

HTML 5 Tutorial: How to create a table using HTML tags and Stylesheet (CSS)

In this article, we want to show you how to create a table using HTML tags and Stylesheet (CSS). HTML table may vary depends on data and style requirements. Sometimes, in the real application, we use an HTML table as a layout of the Email template in HTML format.

Introduction To HTML & CSS: Web Development For Beginners

Introduction To HTML & CSS: Web Development For Beginners - Complete HTML & CSS web developer bootcamp. Learn & practice website design using HTML5 & CSS3 web development resources

How to performance Improve of HTML and CSS

There are a variety of ways you can improve your HTML and CSS performance, Follow each step and it can help you