Skip to content

Instantly share code, notes, and snippets.

@sorie
Created January 18, 2019 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sorie/b1b61e17033c03e6bcfcb6432c496251 to your computer and use it in GitHub Desktop.
Save sorie/b1b61e17033c03e6bcfcb6432c496251 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/xazuvaw
<!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>
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