<h2>Justify Content</h2>
<div class="wrapper">
            <div class="radio_tabs">

                <label class="radio_wrap" data-radio="radio_1">
                    <input type="radio" name="content-align" class="input">
                    <span class="radio_mark">
                        Flex-start
                    </span>
                </label>
                <label class="radio_wrap" data-radio="radio_2">
                    <input type="radio" name="content-align" class="input">
                    <span class="radio_mark">
                        Flex-end
                    </span>
                </label>
                <label class="radio_wrap" data-radio="radio_3">
                    <input type="radio" name="content-align" class="input">
                    <span class="radio_mark">
                        Center
                    </span>
                </label>
                <label class="radio_wrap" data-radio="radio_4">
                    <input type="radio" name="content-align" class="input">
                    <span class="radio_mark">
                        Space-Between
                    </span>
                </label>
                <label class="radio_wrap" data-radio="radio_5">
                    <input type="radio" name="content-align" class="input">
                    <span class="radio_mark">
                        Space-Around
                    </span>
                </label>
            </div>



            <div class="content">

                <div class="radio_content radio_1">
                    <h3> Justify-Content: Flex-start</h3>
                    <div class="justify-content-start">
                        <div class="flex-item-1">
                            1
                        </div>
                        <div class="flex-item-2">
                            2
                        </div>
                        <div class="flex-item-3">
                            3
                        </div>
                        <div class="flex-item-4">
                            4
                        </div>
                    </div>
                </div>
                <div class="radio_content radio_2">
                    <h3> Justify-Content: Flex-end</h3>
                    <div class="justify-content-end">
                        <div class="flex-item-1">
                            1
                        </div>
                        <div class="flex-item-2">
                            2
                        </div>
                        <div class="flex-item-3">
                            3
                        </div>
                        <div class="flex-item-4">
                            4
                        </div>
                    </div>
                </div>
                <div class="radio_content radio_3">
                    <h3> Justify-Content: Center</h3>
                    <div class="justify-content-center">
                        <div class="flex-item-1">
                            1
                        </div>
                        <div class="flex-item-2">
                            2
                        </div>
                        <div class="flex-item-3">
                            3
                        </div>
                        <div class="flex-item-4">
                            4
                        </div>
                    </div>
                </div>
                <div class="radio_content radio_4">
                    <h3>Justify-Content: Space-Between</h3>
                    <div class="justify-content-between">
                        <div class="flex-item-1">
                            1
                        </div>
                        <div class="flex-item-2">
                            2
                        </div>
                        <div class="flex-item-3">
                            3
                        </div>
                        <div class="flex-item-4">
                            4
                        </div>
                    </div>
                </div>
                <div class="radio_content radio_5">
                    <h3> Justify-Content: space-Around</h3>
                    <div class="justify-content-around">
                        <div class="flex-item-1">
                            1
                        </div>
                        <div class="flex-item-2">
                            2
                        </div>
                        <div class="flex-item-3">
                            3
                        </div>
                        <div class="flex-item-4">
                            4
                        </div>
                    </div>
                </div>
            </div>


        </div>
*{
  margin:0;
  padding:0;
  box-sizing: border-box;
  font-family: 'Exo 2', sans-serif;
}
body{
  padding-top: 15px;
  text-align: center;
  background-color: #fff;
}
.wrapper{
  width: 80%;
  height: auto;
  background-color: #f7f7f7;
  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-radius: 5px;
  padding: 18px;
  box-shadow: 0 0 2px rgba(0,0,0,0.1);
}



.flex-container{
  display:flex;
  background-color:teal;
  padding:10px;
  margin-bottom:50px;
}
.flex-item-1{
  width:150px;
  height:150px;
  line-height:150px;
  background-color:#A6E7FF;
  margin:5px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}
.flex-item-2{
  width:150px;
  height:150px;
  line-height:150px;
  background-color:#C8F1D6;
  margin:5px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}
.flex-item-3{
  width:150px;
  height:150px;
  line-height:150px;
  background-color:#E6D0F7;
  margin:5px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}
.flex-item-4{
  width:150px;
  height:150px;
  line-height:150px;
  background-color:#FFDDD3;
  margin:5px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.justify-content-start{
  display:flex;
  justify-content: flex-start;
  background-color:teal;
  padding:10px;
  margin-bottom:50px;
  text-align: center;
}

.justify-content-end{
  display:flex;
  justify-content: flex-end;
  background-color:teal;
  padding:10px;
  margin-bottom:50px;
  text-align: center;
}
.justify-content-center{
  display:flex;
  justify-content: center;
  background-color:teal;
  padding:10px;
  margin-bottom:50px;
  text-align: center;
}
.justify-content-between{
  display:flex;
  justify-content: space-between;
  background-color:teal;
  padding:10px;
  margin-bottom:50px;
  text-align: center;
}
.justify-content-around{
    display:flex;
  justify-content: space-around;
  background-color:teal;
  padding:10px;
  margin-bottom:50px;
  text-align: center;
}
h3{
  margin-bottom: 20px;
}
$(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