מה זה ואיך זה ב css?
תמיד אני נישאלת אותה שאלה.. כמה זה בסטייל? או למה הכוונה ב….
ועוד קישור עם כל התגים בסטייל – שווה להציץ
em – הדגשה יחסית לגודל הפונט
ex- יחסי לגובה הפונט הקיים באלמנטֿ
ch - יחסית לגודל סיפרה 0
rem - גודל הפונט המוגדר במקור לדף
vh
– יחסי ל גובה viewpoint – 1 השינוי יהיה באחוזים !!!
vw- יחסי לרוחב viewpoint - 1 השינוי יהיה באחוזים !!!
unit | relative to |
---|---|
em | font size of the element |
ex | x-height of the element's font |
ch | width of the "0' glyph in the element's font |
rem | font size of the root element |
vh | 1% of the viewport's height |
vw | 1% of the viewport's width |
vmin | 1% of the viewport's smallest dimension |
vmax | 1% of the viewport's largest dimension |