카테고리 없음

CSS 부모 요소에 따른 자식 요소(%)

쿠키는 서비스 2023. 4. 27. 14:45
반응형

(Element)

position: fixed;

 

Element -> ViewPort

 


 

(Element)

position: absolute;

 

(Ancestor content + padding)

position: absolute;

position: relative;

position: fixed;

position: sticky;


(Element))

position: static;

position: relative;

 

(Ancestor content)

block level element

 

Element -> Ancestor/Content + padding

반응형