31/07/2023 4:51 pm
Topic starter
Notifications
Clear all
What is the difference between absolute and relative unit in CSS ?
0
What is the difference between absolute and relative unit in CSS ?
Answer
Add a comment
Add a comment
2 Answers
0
01/08/2023 6:59 am
In CSS, absolute units (like pixels) are fixed and do not change with the screen or other elements. Relative units (like percentages) adjust based on a reference element, making them more flexible and responsive for different screen sizes.
Add a comment
Add a comment
0
01/08/2023 3:13 pm
The absolute units always indicate a fixed length, while with the relative units the length is always calculated in relation to other elements. Among the absolute units are the inch (in), the centimeter (cm), the millimeter (mm), the point (pt) and the pica (pc).
Add a comment
Add a comment
Forum Information
- 14 Forums
- 1,836 Topics
- 5,052 Posts
- 0 Online
- 1,078 Members
Our newest member: Richardnop
Latest Post: loli
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed