CONTACT US

    CSS Units Explained

    A graphic with the CSS logo above the text CSS Units Explained in a rounded rectangle. The background is dark with blue and light blue lines, and a cartoon crocodile with a hat is in the top right corner.
    • A CSS unit determines the size of a property you’re setting for an element or its content.
    • Units that are “absolute” are the same size regardless of the parent element or window size.
    • Relative units are useful for styling responsive sites because they scale relative to the parent or window size (depending on the unit)

    Article link copied

    Close button