JSFiddle - React, Tailwind, and code Playground
HTML
<script src="/tmp/h600.png"></script>
<div class="floatLeft">
<!-- Time stamp and fps below. -->
<div class="floatLeft controls-menu round-corners clearBoth"> <span id='primaryLatestImageTimestamp' style='padding: 1em; width=10em'>
13:48:33.801
</span>
<span id='primaryImageFPS' style='padding: 1em; width=7em;'>0 fps</span>
<span id="msgLabel" style="width=7em"></span>
</div>
<!-- Main menu -->
<div class="controls-menu round-corners clearBoth">
<div id='focusControls' class="floatLeft" style='padding: 4px; display: inline-block;'>
<button id="setAutoFocus">Auto Focus</button>
<link rel="stylesheet" type="text/css" href="/static/sse/sse.css"></link>
<form class='zoomRange_textbox pushTargetzoomRange' actions='/setParams' method='Post' title='Number of steps to sweep.'>
<label style="font-weight: bold" for='zoomRange'>Zoom Range:</label>
<input type='text' name='zoomRange' id='zoomRange_txt' size='6' value='20' />
</form>
<script>
setupTextBox('zoomRange')
</script>
</div>
<br/>
<div id='lineRateSearch' class="clearBoth" style='padding: 4px; display: inline-block;float:left;'>
<button id="setLineRate">Auto Sync</button>
<button id="setLEDPower">Auto LED</button>
<br/>
<button id="setLaserPower">Auto Laser</button>
<button id="graph">Analyze</button>
</div>
<!-- 1) data - first render info. 2) Display name 3) python defined setting name 4) tool tip -->
<div class="clearBoth">
<link rel="stylesheet" type="text/css" href="/static/sse/sse.css"></link>
<form class='gain_textbox pushTargetgain' actions='/setParams' method='Post' title='Higher the value the brighter the picture will be.'>
<label style="font-weight: bold" for='gain'>Gain</label>
...
CSS
.clearBoth {
clear: both;
}
.floatLeft {
float: left;
}
.round-corners {
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.controls-menu {
background: url(/tmp/h600.png) repeat-x;
border:2px solid;
padding: 8px;
}