JSFiddle - React, Tailwind, and code Playground
by chuacw
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Some title</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bluecross-new.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="first-row" style="display: inline-block; ">
<div class="first-rowx" style="display: inline-block; vertical-align: middle;">
<img src="https://cdn.freebiesupply.com/logos/large/2x/acme-logo-png-transparent.png" width=240 height=274 alt="img" />
</div>
<div style="display:inline-block; vertical-align:middle;">
<h1 class="text-center" style="display:inline-block; vertical-align:middle;">Proudly made by ACME</h1>
</div>
<hr />
<div class="center1">
<div class="center2" >
<label id="SomeLabel1">Some label: </label>
<label id="SomeLabel2">Some text....</label> <br/>
<label id="SomeText">Some text </label>
<label id="SomeText2">Please do something xxxxx yyyyy</label> <br/>
</div>
</div>
<hr />
<div class="pet-filter" style="display: flex; justify-content: center;">
<button class="btn btn-default btn-Connect" id="btnConnect">Button1</button>
<button class="btn btn-default" id="Name1" style="visibility:hidden;"></button>
<button class="btn btn-default" id="Name2" >Button3</button>
<button class="btn btn-default" style="visibility: hidden;"></button>
<button class="btn btn-default" id="Name3" disabled>Some action</button>
</div>
<hr />
</div>
<div class = "middle-row" id="SomePanel">
...
CSS
#status {
background: #aaa;
border-top: solid 2px #888;
padding-top: 10em;
bottom: 0;
left: 0;
margin: 0;
padding: 0;
position: fixed;
width: 100%;
}
div.center1 {
display: table-cell;
vertical-align: middle;
height: 50px;
/* border: 1px solid red; */
display: flex;
justify-content: center;
}
div.center2 {
display: table-cell;
vertical-align: middle;
height: 50px;
/*
border: 1px solid red;
display: flex;
*/
}
div.first-row {
margin: 0 auto;
}
/* this needs to be scrollable if dynamic content is to large */
.middle-row {
overflow-y: scroll;
background: blue;
flex:1;
}
.container {
position: absolute;
display:flex;
flex-direction: column;
left: 0;
top: 0;
width: 100%;
background: green;
max-height: 100%;
}