<div class="wrapper">
            <h2>Align Items Properties</h2>
            <div class="icon">&#8595;</div>
            <div class="radio_tabs">

                <label class="radio_wrap" data-radio="radio_1">
                    <input type="radio" name="flex" class="input" checked>
                    <span class="radio_mark">
                        Stretch
                    </span>
                </label>
                <label class="radio_wrap" data-radio="radio_2">
                    <input type="radio" name="flex" class="input">
                    <span class="radio_mark">
                        Flex-Start
                    </span>
                </label>
                <label class="radio_wrap" data-radio="radio_3">
                    <input type="radio" name="flex" class="input">
                    <span class="radio_mark">
                        Flex-End
                    </span>
                </label>
                <label class="radio_wrap" data-radio="radio_4">
                    <input type="radio" name="flex" class="input">
                    <span class="radio_mark">
                        Center
                    </span>
                </label>
                <label class="radio_wrap" data-radio="radio_5">
                    <input type="radio" name="flex" class="input">
                    <span class="radio_mark">
                        Baseline
                    </span>
                </label>
            </div>


            <div class="content">
                <div class="radio_content radio_1">
                    <h3> Align-Items: Stretch</h3>
                    <div class="flex-parent align-item-stretch">
                        <div class="flex-child flex-child-1">
                            1
                        </div>
                        <div class="flex-child flex-child-2">
                            2
                        </div>
                        <div class="flex-child flex-child-3">
                            3
                        </div>
                        <div class="flex-child flex-child-4">
                            4
                        </div>
                    </div>
                </div>
                <div class="radio_content radio_2">
                    <h3> Align-Items: Flex-Start</h3>
                    <div class="flex-parent align-item-start">
                        <div class="flex-child flex-child-1">
                            1
                        </div>
                        <div class="flex-child flex-child-2">
                            2
                        </div>
                        <div class="flex-child flex-child-3">
                            3
                        </div>
                        <div class="flex-child flex-child-4">
                            4
                        </div>
                    </div>
                </div>
                <div class="radio_content radio_3">
                    <h3> Align-Items : Flex-End</h3>
                    <div class="flex-parent align-item-end">
                        <div class="flex-child flex-child-1">
                            1
                        </div>
                        <div class="flex-child flex-child-2">
                            2
                        </div>
                        <div class="flex-child flex-child-3">
                            3
                        </div>
                        <div class="flex-child flex-child-4">
                            4
                        </div>
                    </div>
                </div>
                <div class="radio_content radio_4">
                    <h3>Align-Items : Center</h3>
                    <div class="flex-parent align-items-center">
                        <div class="flex-child flex-child-1">
                            1
                        </div>
                        <div class="flex-child flex-child-2">
                            2
                        </div>
                        <div class="flex-child flex-child-3">
                            3
                        </div>
                        <div class="flex-child flex-child-4">
                            4
                        </div>
                    </div>
                </div>
                <div class="radio_content radio_5">
                    <h3>Align-Items: Baseline</h3>
                    <div class="flex-parent align-items-baseline">
                        <div class="flex-child flex-child-1">
                            1
                        </div>
                        <div class="flex-child flex-child-2">
                            2
                        </div>
                        <div class="flex-child flex-child-3">
                            3
                        </div>
                        <div class="flex-child flex-child-4">
                            4
                        </div>
                    </div>
                </div>
            </div>

        </div>
*{
  margin:0;
  padding:0;
  box-sizing: border-box;
  font-family: 'Exo 2', sans-serif;
}
.wrapper{
  width: 80%;
  height: auto;
  padding: 30px;
  margin: 50px auto;
}
.wrapper .radio_tabs{
  height: 60px;
  background-color: #fff;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size:15px;
  padding: 18px;
  display: flex;
  box-shadow: 0 0 2px rgba(0,0,0,0.1);
}
.wrapper .radio_tabs label{
  margin-right: 15px;
  display: block;
  position: relative;
  cursor: pointer;
  padding-left:28px;
}

.wrapper .radio_tabs label .input:checked ~.radio_mark{
  color: #0075FF;
}

.wrapper .content{
  width: 100%;
  height: calc(100% - 70px);
  background: #fff;
  border: 5px solid #70409F;
  border-radius: 5px;
  padding: 18px;
  box-shadow: 0 0 2px rgba(0,0,0,0.1);
}
.flex-parent{
  display:flex;
  margin-bottom:50px;
  text-align: center;
  height: 350px;
}
.flex-child{
  width:150px;
  line-height:150px;
  margin:5px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}
.flex-child-1{
  background-color:#A6E7FF;
}
.flex-child-2{
  background-color:#C8F1D6;
}
.flex-child-3{
  background-color:#E6D0F7;
}
.flex-child-4{
  background-color:#FFDDD3;
}

.align-item-stretch{
  align-items: stretch;
}

.align-item-start{
  align-items: flex-start;
}
.align-item-end{
  align-items: flex-end;
}
.align-items-center{
  align-items: center;
}
.align-items-baseline{
  align-items: baseline;
}
h3{
  margin-bottom: 20px;
}
h2{
  text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: bold;
}
.icon {
    text-align: center;
    font-size: 25px;
    margin-bottom: 5px;
}
$(document).ready(function () {
            // default hide all radio conteny
            $(".content .radio_content").hide();
            $(".content .radio_content:first-child").show();

            $(".radio_wrap").click(function () {
                var currrent_radio = $(this).attr("data-radio");
                $(".content .radio_content").hide();
                $("." + currrent_radio).show();
            });
        });

External CSS

  1. https://fonts.googleapis.com/css2?family=Exo+2:wght@300&amp;display=swap

External JavaScript

  1. https://code.jquery.com/jquery-3.5.1.js