Measurement Units for Responsive Designs

Dear Sciaku Learner you are not logged in or not enrolled in this course.

Please Click on login or enroll now button.

If you have any query feel free to chat us!

Happy Coding! Happy Learning!

Lecture 79:- Measurement Units for Responsive Designs

  • There are several measurement units that are commonly used in responsive design to ensure that a website's layout and content adapt to different screen sizes:

    1. Pixels (px): Pixels are absolute units that represent a fixed number of pixels on a device's screen. Pixels are commonly used for specifying font sizes and defining the size of images and other visual elements.
    2. Ems (em): Ems are a relative unit of measurement that are based on the font size of the parent element. An em value of 1 is equal to the font size of the parent element, so if the parent element has a font size of 16 pixels, then 1 em is equal to 16 pixels.
    3. Rems (rem): Similar to ems, rems are a relative unit of measurement that are based on the font size of the root element (i.e., the <html> element). Rems provide a more consistent and scalable approach to defining font sizes.
    4. Percentages (%): Percentages are a relative unit of measurement that are based on the size of the parent element. For example, if a container is set to a width of 100%, it will occupy the full width of its parent element.
    5. Viewport units (vw, vh, vmin, vmax): Viewport units are relative units that are based on the size of the viewport (i.e., the size of the device's screen). For example, 1vw is equal to 1% of the viewport width, and 1vh is equal to 1% of the viewport height.

    Each of these measurement units has its own advantages and limitations, and the best unit to use will depend on the specific requirements of your responsive design. A combination of multiple units may be used to achieve the desired result.

10. Responsive Designs

2 Comments

@niteshguptav63
niteshguptav63 Nov 17, 2024 at 1:39 PM

I am not able to access videos from second class and further. I have already completed first class

@niteshguptav63
niteshguptav63 Nov 16, 2024 at 10:56 AM

When will I get my course?

@admin79
admin79 Nov 17, 2024 at 1:29 PM

Now, Your query was resolved.

Frequently Asked Questions About Sciaku Courses & Services

Quick answers to common questions about our courses, quizzes, and learning platform

Didn't find what you're looking for?

help_center Contact Support