<input class="btn-input order-count" type="text" pattern="[1-9]\d{2}">
<div onclick="window.location='http://ya.ru';"></div>
div {
width: 200px;
height: 300px;
background: white;
border: 2px black solid;
margin-top: 50px;
position: relative;
pointer-events: none;
}
div:before {
border: 2px black solid;
border-bottom: none;
content: 'Новости';
display: inline-block;
height: 25px;
background: white;
position: absolute;
top: -27px;
pointer-events: all;
cursor: pointer;
}
div:hover:before {
color: #00d;
text-decoration: underline;
}
<?php
$i = 6;
foreach ($this->serverList as $value) {
if ($value['check'] == true) $checked=" checked ";
else $checked = " ";
echo '<td style="width:66px;"><input type="checkbox" name="top_'.$value['top'].'"'.$checked.'/>.'.$value['top'].'</td>';
$i++;
if ($i > 0) {
$i = 0;
echo '</tr><tr>';
}
}
?>
<?php
$i = 3;
foreach ($this->serverList as $value) {
if ($value['check'] == true) $checked=" checked ";
else $checked = " ";
echo '<td style="width:66px;"><input type="checkbox" name="top_'.$value['top'].'"'.$checked.'/>.'.$value['top'].'</td>';
$i++;
if ($value['check'] == true) $checked=" checked ";
else $checked = " ";
echo '<td style="width:66px;"><input type="checkbox" name="top_'.$value['top'].'"'.$checked.'/>.'.$value['top'].'</td>';
$i++;
if ($i > 0) {
$i = 0;
echo '</tr><tr>';
}
}
?>