Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • Ralph• 190

    @delacruzralph

    Submitted

    I often find myself feeling weird about hardcoding sizes such as width and height of elements since screen sizes can affect the viewing experience. What are some good practices when it comes to setting sizes of elements? I know there exists different measurements aside from pixels, but I don't have a full grasp on them conceptually. Any resources would be helpful!

    kebin20• 300

    @kebin20

    Posted

    I mostly use a combination of percentages, em and rems, and vw and vh (probably precentages more than these) and never use pixels for sizing, as it ruins the sizing when taking responsive design into mind.

    Have a watch on Kevin Powell's video on ems and rems: https://www.youtube.com/watch?v=_-aDOAMmDHI

    Marked as helpful

    1