JSFiddle - React, Tailwind, and code Playground

by Steve Davies

HTML

<div class="container">
  <div class="accordion">
    <div>
      <input id="ac-1" name="accordion-1" type="radio" checked="checked" />
      <label for="ac-1" class="title1 hover-tag">COACHING & MENTORING STUDY</label>
      <div class="article ac-small">
        <div class="box1 lime hover box-text">
          <h1><strong>Research Degrees</strong></h1>
        </div>
        <div class="box1 lime hover box-text">
          <h1><strong>Supervision Courses</strong></h1>
        </div>
        <div class="box1 lime hover box-text">
          <h1><strong>ILM Level 7 Executive Coaching & Mentoring</strong></h1>
        </div>
        <div class="box1 lime hover box-text">
          <h1><strong>MA Coaching & Mentoring Practice</strong></h1>
        </div>
        <div class="box1 lime hover box-text">
          <h1><strong>Doctor of Coaching and Mentoring</strong></h1>
        </div>
        <div class="picture-box2 limetint">
        </div>
      </div>
    </div>
    <div>
      <input id="ac-2" name="accordion-1" type="radio" />
      <label for="ac-2" class="hover-tag2">RESEARCH & RESEARCH EVENTS</label>
      <div class="article ac-small">
        <div class="box1 pink hover box-text">
          <h1><strong>Research Degrees</strong></h1>
        </div>
        <div class="box1 pink hover box-text">
          <h1><strong>International Conference in Coaching Supervision</strong></h1>
        </div>
        <div class="box1 pink hover box-text">
          <h1><strong>Coaching & Mentoring Research Conference</strong></h1>
        </div>
        <div class="box1 pink hover box-text">
          <h1><strong>Coaching & Mentoring Society (OBCAMS)</strong></h1>
        </div>
        <div class="box1 pink hover box-text">
          <h1><strong>Current research projects</strong></h1>
        </div>
        <div class="picture-box2 pinktint">
        </div>
      </div>
    </div>
    <div>
      <input id="ac-3" name="accordion-1" type="radio" />
      <label...

CSS

/*=============================   ACCORDION START  =============================*/

.accordion {
  width: 530px;
  margin: 10px auto;
}

.accordion label {
  font-family: Arial, sans-serif;
  padding: 7px 10px;
  position: relative;
  display: block;
  height: 30px;
  cursor: pointer;
  color: #fff;
  line-height: 33px;
  font-size: 19px;
  background: #424a52;
  border: 1px solid #fff;
}

.accordion label:hover {
  background: #adafaf;
}

.accordion input + label {
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.accordion input:checked + label,
{
  background-color: #424a52;
}

.accordion input:checked + label:hover {
  background: #adafaf;
  color: #fff;
}

.accordion input {
  display: none;
}

.accordion .article {
  background: rgb(255, 255, 255);
  overflow: hidden;
  height: 0px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.accordion .article p {
  font-style: italic;
  color: #000;
  line-height: 23px;
  font-size: 14px;
  padding: 20px;
}

.accordion input:checked ~ .article {
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.accordion input:checked ~ .article.ac-small {
  height: 360px;
}

.accordion input:checked ~ .article.ac-medium {
  height: 195px;
}

.accordion input:checked ~ .article.ac-large {
  height: 700px;
}
/*=============================   ACCORDION FINISH  =============================*/
/*=============================      BOX START      =============================*/

.box1 {
  width: 163px;
  height: 163px;
  float: left;
  margin-left: 10px;
  margin-top: 10px;
  position:...