JSFiddle - React, Tailwind, and code Playground

HTML

<div class="outer">
    <div class="parent">
        <div class="child1">1</div>
        <div class="child2"><span>Child 2 is longer than the edge, I don't want it to wrap</span></div>
    </div>
</div>

CSS

.outer
{
    position: relative;
    width: 320px;
    height: 480px;
    border: solid 1px #cccccc;
}

.parent
{
    position: absolute;
    top: 100px;
    left: 150px;
    height: 20px;
    overflow: hidden;
    display:table;
}

.child1
{
    position: relative;
    width: 30px;
	height: 100%;
	float: left;
	background-color: red;
}

.child2
{
    position: relative;
	height: 100%;
	background-color: blue;
    white-space: nowrap;
    display: table-cell;
    overflow: hidden;
}

.child2 span
{
    position: relative;
	width: 100%;
	vertical-align: bottom;
	display: table-cell;
}