목록2017/08/24 (2)
Knowledge Map
image object-fit
MDN에서 그냥 긁어옴 The object-fit CSS property specifies how a replaced element, such as an or , should be resized to fit its container./* Keyword values */ object-fit: fill; object-fit: contain; object-fit: cover; object-fit: none; object-fit: scale-down; /* Global values */ object-fit: inherit; object-fit: initial; object-fit: unset;Depending on the value you specify for object-fit, the element may ..
카테고리 없음
2017. 8. 24. 16:48
table & table-cell 를 이용한 정렬
12345678910111213ol { width: 400px; /*width: 800px;*/ display: table; table-layout: fixed; /* the magic dust that ensure equal width */ background: #ccc}ol > li { display: table-cell; border: 1px dashed red; text-align: center}Colored by Color Scriptercs 이렇게 하면 갯수에 따라 자동으로 사이즈 맞춰준다.
WEB/HTML&CSS
2017. 8. 24. 12:38