JSFiddle - React, Tailwind, and code Playground
HTML
<main>
<div>
<span>1234567890 1234</span>
</div>
</main>
CSS
* {
box-sizing: border-box
}
html,
body {
height: 100%;
padding: 0;
margin: 0;
}
main {
position: relative;
width: 140px;
height: 100px;
background: red;
padding: 10px;
}
div {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
span {
background: green;
}