Study/css
-
overflow tagStudy/css 2020. 4. 9. 15:12
overflow = 넘치다 넘치는 content를 어떻게 처리할지 명령하는 태그이다. Ink overflow and scrollable overflow There are two types of overflow that you might encounter in CSS. The first is described as ink overflow. This is the overflow of painting effects which do not affect layout or otherwise extend the scrollable overflow region, such as box shadows, border images, text decoration, overhanging glyphs, outlines, etc. ..
-
box-sizing: border-box;Study/css 2020. 4. 8. 21:30
box에 margin, padding, border 값 등을 줄 경우, margin, padding, border 값들은 원래 있던 박스 사이즈 위에 얹어져 전체 박스의 값이 더 커지게 된다. 예를들어, 가로 150px, 세로 50px 크기의 박스가 있다고 해보자. 여기에 margin 10px, padding 20px, border 5px 값을 준다면, 이렇게 박스 자체가 커지게 됨. 그런데 이 박스에게 height나 width값을 100%줄경우, box의 값이 커져버리면 화면을 이탈하는 경우가 발생함. 그래서 우리는, padding이나 margin 값을 줘도 박스 자체의 크기는 커지지 않도록 하기 위해 box-sizing: border-box; 값을 준다. 그러면 padding값을 줘도 box의 전체 ..