JSFiddle - React, Tailwind, and code Playground

HTML

<table style="height:100%;width:100%;table-layout:fixed">
   <tr>
    <td class='div'>
        <div class="centerElement"> center element </div>
        <span id='divElementLeft'>
      left
        </span>
        <span id='divElementRight'>
      right
        </span>
    </td>
    <td style="background-color:red"  class='div'>
    </td>
   </tr>
</table>

CSS

#divElementLeft{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -100px;
    width: 30px;
    height: 20px;
    background-color: blue;
}

#divElementRight{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: 70px;
    width: 30px;
    height: 20px;
    background-color: blue;
}

.div{
    width: 50%;
    height: 100%;
    position: relative;
    background-color: yellow;
}

.centerElement{
    width:100px;
    height:100px;
    margin: auto;
    background-color: green;
    vertical-align:middle;
    text-align:center;
}

body, html {
  height: 100%;
}