You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,8 @@ Units are used for interpreting length in your css code value. These are used in
122
122
| vh | relative to the viewport's height, for eg.: ```6vh``` would be ```6% of the height``` of the viewport |
123
123
| vmax | relative to the viewport's bigger dimension which could be either the height or the width, for eg.: ```3vmax``` would mean ```3vh``` if the height is more than the width and would mean ```3vw``` otherwise |
124
124
| vmin | similar to vmax, differs because it would consider the smaller dimension of either the height or the width |
125
+
| ch | it is relative to the width of zero (0) |
126
+
| ex | it is relative to the x height of the current font |
125
127
126
128
> relative units are much more preferred nowadays as their are just too many devices with varying screen heights, widths, pixel densities etc.
0 commit comments