.row {
display: flex;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
justify-content: space-around;
}
.news-block {
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
max-width: 100%;
flex-grow:1;
}
.row {
display: flex;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
justify-content: space-around;
}
.news-block {
position: relative;
width: 100%;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
flex: 0 0 100%;
max-width: 315px;
}
.content
width 100%
height 100vh
background-color grey
overflow-y scroll
<header></header>
<div class="wrapper">
<div class="content">
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
<h1>на тебе контент</h1>
</div>
</div>
body {
overflow:hidden;
height:100%
}
.wrapper {
height:100%;
position: absolute;
width:100%;
}
header {
width :100%;
height :5em;
background-color :red ;
}
.content{
background-color: white;
padding: 10px;
max-height:100%;
position:relative;
overflow-y:auto;
}
.mini-left {flex-direction:column;}
<div class="flex row">
<span class="t2 flex column">
<em class="t1"></em>
<em class="t2"></em>
</span>
</div>
.flex {
display:flex;
}
.row {
flex-direction:row;
}
.column {
flex-direction:column;
}
.t1 {
flex:1 1 100%;
}
.t2 {
flex:1 1 200px;
}
div {
width:100%;
height:100vh;
background:blue;
}
.flex.column {
background:red;
}
.column .t1 {
background:green;
}
<p class="text">text</p>
body {
background:#000;
}
.text {
background: linear-gradient(#30CFD0 0%,#30CFD0 50%,#ffff00 50%, #ffff00 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.bg {
background-size: cover;
height: 100%;
overflow: hidden;
transition: ease all 0.80s;
}
.bg:hover .show-block {
margin-bottom: 0;
}
.bg:hover:first-child {
padding-right:100px;
margin-right:-85px;
transition: ease all 0.80s;
z-index:100;
}
.bg:hover {
padding:0 100px;
margin:0 -85px;
transition: ease all 0.80s;
z-index:100;
}
.bg:hover:last-child {
padding-left:100px;
margin-left:-85px;
transition: ease all 0.80s;
z-index:100;
}
<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;
}