JSFiddle - React, Tailwind, and code Playground

by wdm954

HTML

<div id="parent">
    <div id="inner">
        <label>Name</label><span><input id="text" type="text" /></span><input id="submit" type="button" value="Submit" />
    </div>
    <p>some paragraph text</p>
</div>

CSS

#inner {
    display: table;
    width: 100%;
}
label {
    display: table-cell;
}
span {
    display: table-cell;
    width: 100%;
    padding: 0px 10px;
}
#text {
    width: 100%;
}
#submit {
    display: table-cell;
}