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>


html css css3

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

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

What is new features in Javascript ES2020 ECMAScript 2020

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Random Password Generator Online

HTML Color Picker online | HEX Color Picker | RGB Color Picker

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.

HTML And CSS Tutorial For Beginners | Complete HTML & CSS Course In One Tutorial

HTML And CSS Tutorial For Beginners | Complete HTML & CSS Course In One Tutorial | Learn Basics of HTML and CSS ❤️ SUBSCRIBE: https://goo.gl/tTFmPb In this v...

How to Style the HTML Element using CSS3

In this CSS3 tutorial, you'll learn about how to style the HTML element by using the CSS3. CSS3 is the third generation of the CSS specification recommended by the W3C.

Slide Carousel Using Html & CSS | Slideshow Football HTML & CSS

You'll learn How to create an amazing Slide Carousel Using Html and CSS. The carousel is a slideshow for cycling through a series of content, that works with a series of images, text, or custom markup...

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