JSFiddle - React, Tailwind, and code Playground
HTML
<div id="color-1"><input type="text" ng-model="color_1" placeholder="Enter Color #1" />
</div>
<div id="color-2"><input type="text" ng-model="color_2"
placeholder="Enter Color #2" />
<h1>{{color_2}}</h1>
</div>
<div id="color-3"><input type="text" ng-model="color_3"
placeholder="Enter Color #3"/>
<h1>{{color_3}}</h1>
</div>
CSS
html, body {
height: 100%;
margin: 0;
padding: 0;
}
input[type="text"] {
width:150px;
height: 30px;
}
#color-1 {
height: 33%;
background: {{yourName}};
text-align: center;
vertical-align: top;
background: red;
display: flex;
justify-content: center;
flex-direction: column;
}
#color-2{
height: 33%;
background: {{color_2}};
text-align: center;
vertical-align: middle;
}
#color-3{
height: 33%;
background: {{color_3}};
text-align: center;
vertical-align: middle;
}