선택자{
position: 속성값;
top: 20px;
bottom: 20px;
left: 100%;
right: 100%;
center: 10px;
}
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="" rel="stylesheet" type="text/css">
</head>
<body>
<div class="bg">
<div class="box"></div>
</div>
</body>
</html>
*{ margin:0; padding:0;}
.bg{
margin:0 auto;
width:1024px;
height:768px;
background-color: gray;
position:relative;
}
.box{
width:100px;
height:100px;
position: absolute;
left:100px;
top:100px;
background-color:aqua;
}
/* 키워드 값 */
z-index: auto;
/* <integer> 값 */
z-index: 0;
z-index: 3;
z-index: 289;
z-index: -1; /* 음수 값으로 우선순위를 낮출 수 있음 */
/* 전역 값 */
z-index: inherit;
z-index: initial;
z-index: unset;
선택자{
margin: 0 auto;
}
선택자{
display: flex;
justify-content: center;
}
선택자{
position: 속성값;
top: 20px;
bottom: 20px;
left: 100%;
right: 100%;
center: 10px;
}
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="" rel="stylesheet" type="text/css">
</head>
<body>
<div class="bg">
<div class="box"></div>
</div>
</body>
</html>
*{ margin:0; padding:0;}
.bg{
margin:0 auto;
width:1024px;
height:768px;
background-color: gray;
position:relative;
}
.box{
width:100px;
height:100px;
position: absolute;
left:100px;
top:100px;
background-color:aqua;
}
/* 키워드 값 */
z-index: auto;
/* <integer> 값 */
z-index: 0;
z-index: 3;
z-index: 289;
z-index: -1; /* 음수 값으로 우선순위를 낮출 수 있음 */
/* 전역 값 */
z-index: inherit;
z-index: initial;
z-index: unset;
선택자{
margin: 0 auto;
}
선택자{
display: flex;
justify-content: center;
}
선택자{
position: 속성값;
top: 20px;
bottom: 20px;
left: 100%;
right: 100%;
center: 10px;
}
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="" rel="stylesheet" type="text/css">
</head>
<body>
<div class="bg">
<div class="box"></div>
</div>
</body>
</html>
*{ margin:0; padding:0;}
.bg{
margin:0 auto;
width:1024px;
height:768px;
background-color: gray;
position:relative;
}
.box{
width:100px;
height:100px;
position: absolute;
left:100px;
top:100px;
background-color:aqua;
}
/* 키워드 값 */
z-index: auto;
/* <integer> 값 */
z-index: 0;
z-index: 3;
z-index: 289;
z-index: -1; /* 음수 값으로 우선순위를 낮출 수 있음 */
/* 전역 값 */
z-index: inherit;
z-index: initial;
z-index: unset;
선택자{
margin: 0 auto;
}
선택자{
display: flex;
justify-content: center;
}
선택자{
position: 속성값;
top: 20px;
bottom: 20px;
left: 100%;
right: 100%;
center: 10px;
}
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="" rel="stylesheet" type="text/css">
</head>
<body>
<div class="bg">
<div class="box"></div>
</div>
</body>
</html>
*{ margin:0; padding:0;}
.bg{
margin:0 auto;
width:1024px;
height:768px;
background-color: gray;
position:relative;
}
.box{
width:100px;
height:100px;
position: absolute;
left:100px;
top:100px;
background-color:aqua;
}
/* 키워드 값 */
z-index: auto;
/* <integer> 값 */
z-index: 0;
z-index: 3;
z-index: 289;
z-index: -1; /* 음수 값으로 우선순위를 낮출 수 있음 */
/* 전역 값 */
z-index: inherit;
z-index: initial;
z-index: unset;
선택자{
margin: 0 auto;
}
선택자{
display: flex;
justify-content: center;
}
선택자{
position: 속성값;
top: 20px;
bottom: 20px;
left: 100%;
right: 100%;
center: 10px;
}
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="" rel="stylesheet" type="text/css">
</head>
<body>
<div class="bg">
<div class="box"></div>
</div>
</body>
</html>
*{ margin:0; padding:0;}
.bg{
margin:0 auto;
width:1024px;
height:768px;
background-color: gray;
position:relative;
}
.box{
width:100px;
height:100px;
position: absolute;
left:100px;
top:100px;
background-color:aqua;
}
/* 키워드 값 */
z-index: auto;
/* <integer> 값 */
z-index: 0;
z-index: 3;
z-index: 289;
z-index: -1; /* 음수 값으로 우선순위를 낮출 수 있음 */
/* 전역 값 */
z-index: inherit;
z-index: initial;
z-index: unset;
선택자{
margin: 0 auto;
}
선택자{
display: flex;
justify-content: center;
}