Created
January 22, 2019 01:09
-
-
Save sorie/0c3c0d67abc49501e60445fae28fa7ba to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/pewuken
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.box1 { | |
width: 100%; | |
height: 90px; | |
background:rgb(255,0,255); | |
} | |
.box2 { | |
width: calc(100% - 25%); | |
height: 90px; | |
background: rgb(0,0,255); | |
} | |
.box3 { | |
width: calc(100% - 100px); | |
height: 90px; | |
background: rgb(255,0,0); | |
} | |
.box4 { | |
width: calc(100% / 3); | |
height: 90px; | |
background: rgb(0,155,0); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="box1"></div> | |
<div class="box2"></div> | |
<div class="box3"></div> | |
<div class="box4"></div> | |
<script id="jsbin-source-css" type="text/css">.box1 { | |
width: 100%; | |
height: 90px; | |
background:rgb(255,0,255); | |
} | |
.box2 { | |
width: calc(100% - 25%); | |
height: 90px; | |
background: rgb(0,0,255); | |
} | |
.box3 { | |
width: calc(100% - 100px); | |
height: 90px; | |
background: rgb(255,0,0); | |
} | |
.box4 { | |
width: calc(100% / 3); | |
height: 90px; | |
background: rgb(0,155,0); | |
} | |
</script> | |
</body> | |
</html> |
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
.box1 { | |
width: 100%; | |
height: 90px; | |
background:rgb(255,0,255); | |
} | |
.box2 { | |
width: calc(100% - 25%); | |
height: 90px; | |
background: rgb(0,0,255); | |
} | |
.box3 { | |
width: calc(100% - 100px); | |
height: 90px; | |
background: rgb(255,0,0); | |
} | |
.box4 { | |
width: calc(100% / 3); | |
height: 90px; | |
background: rgb(0,155,0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment