- position을 absolute로 주고 margin을 auto로...
1
2
3
4
5
6
7
8
9
|
div#visor-progress-circle img{
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
}
| cs |
1
2
3
4
5
6
7
8
9
|
/* 화면이 1980px보다 클시 */
@media screen and (min-width: 1980px){
div#googlePlay{
width: 1980px !important;
left:0; right:0;
margin-left:auto; margin-right:auto;
}
}
| cs |
1
2
3
4
5
6
|
.center {
position: absolute;
top: 35%; /* position the top edge of the element at the middle of the parent */
left: 50%; /* position the left edge of the element at the middle of the parent */
transform: translate(-50%, -50%); /* This is a shorthand of translateX(-50%) and translateY(-50%) */
}
| cs |