Created
January 18, 2019 03:18
-
-
Save sorie/b1b61e17033c03e6bcfcb6432c496251 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/xazuvaw
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"> | |
guide_1 { | |
width: 500px; | |
height: 100px; | |
background: #ccc; | |
} | |
.guide_1 div { | |
width: 50%; | |
height: 100%; | |
border: 20px solid cornflowerblue; | |
float: left; /* div 2개를 옆으로 나란히 */ | |
} | |
.guide_1 div:nth-child(2) { | |
opacity: 0.7; | |
} | |
.guide_2 { | |
width: 500px; | |
height: 100px; | |
background: #ccc; | |
} | |
.guide_2 div { | |
width: 50%; | |
height: 100%; | |
border: 20px solid cornflowerblue; | |
float: left; /* div 2개를 옆으로 나란히 */ | |
box-sizing: border-box; /* 추가 */ | |
} | |
.guide_2 div:nth-child(2) { | |
opacity: 0.7; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="guide_1"> | |
<div>box</div> | |
<div>box</div> | |
</div> | |
<div class="guide_2"> | |
<div>box</div> | |
<div>box</div> | |
</div> | |
<script id="jsbin-source-css" type="text/css">guide_1 { | |
width: 500px; | |
height: 100px; | |
background: #ccc; | |
} | |
.guide_1 div { | |
width: 50%; | |
height: 100%; | |
border: 20px solid cornflowerblue; | |
float: left; /* div 2개를 옆으로 나란히 */ | |
} | |
.guide_1 div:nth-child(2) { | |
opacity: 0.7; | |
} | |
.guide_2 { | |
width: 500px; | |
height: 100px; | |
background: #ccc; | |
} | |
.guide_2 div { | |
width: 50%; | |
height: 100%; | |
border: 20px solid cornflowerblue; | |
float: left; /* div 2개를 옆으로 나란히 */ | |
box-sizing: border-box; /* 추가 */ | |
} | |
.guide_2 div:nth-child(2) { | |
opacity: 0.7; | |
}</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
guide_1 { | |
width: 500px; | |
height: 100px; | |
background: #ccc; | |
} | |
.guide_1 div { | |
width: 50%; | |
height: 100%; | |
border: 20px solid cornflowerblue; | |
float: left; /* div 2개를 옆으로 나란히 */ | |
} | |
.guide_1 div:nth-child(2) { | |
opacity: 0.7; | |
} | |
.guide_2 { | |
width: 500px; | |
height: 100px; | |
background: #ccc; | |
} | |
.guide_2 div { | |
width: 50%; | |
height: 100%; | |
border: 20px solid cornflowerblue; | |
float: left; /* div 2개를 옆으로 나란히 */ | |
box-sizing: border-box; /* 추가 */ | |
} | |
.guide_2 div:nth-child(2) { | |
opacity: 0.7; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment