Please enable JavaScript.
Coggle requires JavaScript to display documents.
CSS (Display (block, inline, block-inline, none && visuable:…
CSS
-
Box-model
box-sizing: control width, height, with margin, border properties
-
-
-
position
-
relative: is same static unless add some extra properties(top, bottom, left, right).
fixed: always stays in the same place even if the page is scrolled, use with extra properties.
absolute: behaves like fixed except relative to the nearest positioned ancestor instead of relative to the viewport.(parrent tag much be relative)
-
some question:
the difference between "position: relative, top; 10xp" and "margin-top: 10px " ?
-