Descrição
<p>
<style type="text/css">
html, body {
height: 100%;
margin: 0;
}
/* Estilo básico da tabela */
.container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
img {
max-width: 40%;
margin-right: 20px;
}
table {
width: 58%;
border-collapse: collapse;
margin:0 auto!important;
padding:0px!important;
}
th,
td {
border: 1px solid #ccc;
padding: 8px 12px;
text-align: center;
font-size: 14px;
font-family: arial;
}
th {
background-color: #f2f2f2;
font-size: 14px;
font-family: arial;
}
/* Estilos responsivos para dispositivos menores */
@media (max-width: 600px) {
img {
max-width: 100%;
margin-right: 0;
margin-bottom: 20px;
}
table,
thead,
tbody,
th,
td,
tr {
display: block;
width: 100%;
}
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
tr {
margin: 0 0 1rem 0;
}
tr:nth-child(odd) {
background: #f8f8f8;
}
td {
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
font-size:13px
}
td:before {
position: absolute;
top: 0;
left: 6px;
width: 50%;
padding-right: 10px;
white-space: nowrap;
line-height: 33px;
text-align: left;
font-size: 13px;
font-weight:bold;
}
td:nth-of-type(1):before {
content: "Tamanho";
}
td:nth-of-type(2):before {
content: "Comprimento";
}
td:nth-of-type(3):before {
content: "Comprimento de Baixo";
}
td:nth-of-type(4):before {
content: "Cintura";
}
} </style>
</p>
<div class="container">
<table>
<thead>
<tr>
<th>
Tamanho</th>
<th>
Comprimento</th>
<th>
Comprimento de Baixo</th>
<th>
Cintura</th>
</tr>
</thead>
<tbody>
<tr>
<td>
38</td>
<td>
97cm</td>
<td>
71cm</td>
<td>
73cm</td>
</tr>
<tr>
<td>
40</td>
<td>
97cm</td>
<td>
71cm</td>
<td>
73cm</td>
</tr>
<tr>
<td>
46</td>
<td>
103cm</td>
<td>
73,5cm</td>
<td>
85cm</td>
</tr>
</tbody>
</table>
</div>
<p>
</p>