This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box { | |
height: 80px; | |
width: 200px; | |
border: 1px solid red; | |
background: linear-gradient(to right, rgba(255,100,100,1) 40%, rgba(255,100,100,0)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#item { | |
position:absolute; | |
width: 200px; | |
height: 200px; | |
background: red; | |
margin: auto; | |
left:0; | |
right:0; | |
top:50%; | |
bottom:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#item { | |
position:absolute; | |
width: 200px; | |
height: 200px; | |
background: red; | |
margin: auto; | |
left:0; | |
right:0; | |
top:50%; | |
bottom:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul { | |
padding: 0; | |
margin: 0; | |
outline: 1px solid red; | |
} | |
ul li { | |
list-style-type: none; | |
height: 40px; | |
padding-top: 1px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrapper-img { | |
padding-bottom: 50%; | |
height: 0; | |
background: #999; | |
} | |
.wrapper { | |
max-width: 50%; | |
background: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrapper { | |
max-width: 50%; | |
outline: 1px solid red; | |
} | |
.wrapper-img { | |
padding-bottom: 50%; | |
height: 0; | |
background: #999; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrapper { | |
max-width: 50%; | |
} | |
.wrapper-img { | |
padding-bottom: 50%; | |
height: 0; | |
background: #999; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrapper { | |
display: inline-block; | |
outline: 1px solid red; | |
} | |
.item { | |
outline: 1px solid blue; | |
/*width: 100px;*/ | |
height: 100px; | |
background: blue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cnt { | |
width: calc(9/16*100vh); | |
max-width: 100%; | |
margin: auto; | |
} | |
.element { | |
padding-top: calc(16/9*100%); | |
margin: auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cnt { | |
width: calc(9/16*100vh); | |
max-width: 50%; | |
margin: auto; | |
} | |
.element { | |
padding-top: calc(16/9*100%); | |
margin: auto; |
NewerOlder