JSFiddle - React, Tailwind, and code Playground
HTML
<div id="footer">
<div class="hell">
<div class="sub">
<div class="shetpont line" id="shetpon">
0
</div>
<div onclick="model1onClick()" class="object line">
<span class="t-obj">
Понтон <br> модульный
</span>
<input type="image" alt=" Модуль понтона" src="img/pontoon.png" width="100px" height="100px">
</div>
<div class="color_el" id="shetpon">
0
<div class="pod_menu">
<div class="colors" style="background: #1a92fb; " onclick="" ><a href="#" style="color:#1a92fb;">0</a></div>
<div class="colors" style="background: #c00; " onclick=""><a href="#" style="color:#c00;">0</a></div>
<div class="colors" style="background: #393; " onclick=""><a href="#" style="color:#393; ">0</a></div>
<div class="colors" style="background: #ffffff; " onclick=""><a href="#" style="color:#ffffff;">0</a></div>
<div class="colors" style="background: #666; " onclick=""><a href="#" style="color:#666;">0</a></div>
</div>
</div>
</div>
<div class="shetpont line">
0
</div>
<div onclick="model2onClick()" class="object line">
<span class="t-obj">
Сходня <br>с переходником
</span>
<input type="image" alt="Сходня на берег с переходником и соединителями" src="img/gangway.png" width="100px" height="100px">
</div>
...
CSS
html,
body {
height: 100%;
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
background: gray;
font-family: 'Neo Sans Pro Regular';
}
.pod_menu {
margin: 0;
padding: 5px 5px 5px 5px;
background: #fff;
border: 3px solid #b6e0f6;
position: absolute;
z-index: 2;
border-radius: 10px;
}
.pod_menu .colors {
display: inline-block
}
.sub {
width: 160px;
display: inline-block;
}
.colors {
display: table-cell;
border: 3px solid #b6e0f6;
width: 26px;
line-height: 24px;
text-align: center;
border-radius: 50%;
background: red;
}
a {
text-decoration: none;
}
/* счетчики */
.shetpont {
display: inline-block;
text-align: center;
position: relative;
left: 139px;
border: 3px solid #b6e0f6;
z-index: 1;
background: #fff;
width: 26px;
line-height: 24px;
border-radius: 50%;
top: -145px;
font-size: 11px;
}
.color_el {
text-align: center;
position: absolute;
border: 3px solid #b6e0f6;
z-index: 1;
background: #1a92fb;
color: #1a92fb;
width: 26px;
line-height: 24px;
border-radius: 50%;
top: 148px;
left: 139px;
font-size: 11px;
}
#footer input {
margin: 0;
width: 95%;
height: 70%;
background: #fff;
border-radius: 10px;
}
#footer {
padding-top: 1%;
Background: #397dbf;
height: 220px;
border-radius: 0 0 15px 15px;
}
#footer input:hover {
transition: 0.5s;
background: #d4effd;
}
.hell {
Background: white;
width: 96%;
position: relative;
left: 2%;
border-radius: 10px;
padding-top: 10px;
padding-bottom: 10px;
}
.object {
position: relative;
width: 120px;
text-align: center;
display: inline-block;
background: #b6e0f6;
border-radius: 10px 0 0px 10px;
font-weight: bold;
font-size: 12px;
z-index: 0;
}
.pod_menu .colors {
display: inline-block
}
.t-obj {
padding-top: 10px;
display: block;
height: 40px;
}