JSFiddle - React, Tailwind, and code Playground

HTML

<div class="outer">
    <div class="parent">
        <div class="child1">1</div>
        <div class="child2">Child 2 is longer than the edge, I don't want it to wrap</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;
}

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

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