<div>
<textarea type="text"></textarea>
</div>
div {
position:relative;
padding-top:20px;
margin:30px;
}
div:before {
content:"текст";
position:absolute;
top:30px;
left:20px;
color:#000;
z-index:10;
}
textarea {
width:300px;
height:200px;
padding:40px 0 0 20px;
}
@media (max-width: 575.98px)
.grid {
width: 50vw;
}
.grid-item {
width:100%;
}
.test {
width: 400px;
height: 200px;
float: left;
background: #7aadff;
transform: skewX(15deg);
margin-left:100px;
}
.test2 {
width: 400px;
float: left;
height: 200px;
background: #ffd079;
transform: skewX(15deg);
}
.test:after {
content: " ";
position: absolute;
display: block;
width: 100%;
height: 100%;
top: 0;
left: -55px;
z-index: -1;
background: #7aadff;
transform-origin: bottom left;
-ms-transform: skew(-15deg, 0deg);
-webkit-transform: skew(-15deg, 0deg);
transform: skew(-15deg, 0deg);
}
.test2:after {
content: " ";
position: absolute;
display: block;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
background: #ffd079;
transform-origin: bottom left;
-ms-transform: skew(-15deg, 0deg);
-webkit-transform: skew(-15deg, 0deg);
transform: skew(-15deg, 0deg);
}
<table style="width: 100%; border-collapse: collapse; padding: 10px 20px; font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; color: #333333; text-align: center;">
<thead>
<tr>
<th colspan="7" style="padding: 15px 0; font-size: 19px; font-weight: bold;">
Currency rate changes
</th>
</tr>
</thead>
<tbody>
<tr class="tr">
<td class="td">Currency pair</td>
<td class="td">Exchanges</td>
<td class="td">Direction</td>
<td class="td">Accounting price</td>
<td class="td">Current price</td>
<td class="td">±</td>
<td class="td">%</td>
</tr>
</tbody>
</table>
th {
border:none;
}
.tr {
background-color: #e2e2e2;
height: 50px;
padding: 10px;
}
.td {
border: 1px dotted #777;
border-right: none;
}
.td:first-child {
height: 50px;
}
.td:last-child {
border-right: 1px dotted #777;
}
th {
border:none;
background-image: linear-gradient(to right, black 33%, rgba(255,255,255,0) 0%);
background-position: bottom;
background-size: 3px 1px;
background-repeat: repeat-x;
}
.tr {
background-color: #e2e2e2;
height: 50px;
padding: 10px;
}
.td {
background-image: linear-gradient(black 33%, rgba(255,255,255,0) 0%);
background-position: right;
background-size: 1px 3px;
background-repeat: repeat-y;
border-bottom:1px dotted #777;
}
.td:first-child {
height: 50px;
border-left: 1px dotted #777;
}
.td:last-child {
border-right: 1px dotted #777;
}
@media only screen and (max-width: 768px)
.main .header {
width: 100%;
left: 0;
margin-left: 0;
}
.container {
display: flex;
flex-wrap:wrap;
justify-content:space-around;
}
.block {
min-width: 200px;
max-width: 400px;
height: 40px;
background: #456;
margin:10px;
flex-grow: 1;
}