Skip to main content Sidebar
Skip to table of contents

    Frame

    Frames are containers that maintain a consistent aspect ratio, ideal for images and other media.

    <div class="frame-overview pc-frame" style="max-inline-size: 20rem">
        <div></div>
    </div>
    
    <style>
        .frame-overview:has(div:empty) {
            padding: var(--pc-spacing-s);
            border: var(--pc-border-width-s) dashed
                var(--pc-color-neutral-border-normal);
            border-radius: var(--pc-border-radius-l);
        }
    
        .frame-overview > div:empty {
            min-inline-size: 4rem;
            min-block-size: 4rem;
            background-color: var(--pc-color-indigo-60);
            border-radius: var(--pc-border-radius-m);
        }
    </style>
    Code Edit

    Demos#

    Card image placeholders#

    Frames are well‐suited for images and image placeholders.

    Edit

    Aspect ratio#

    Frames have a square aspect ratio by default. You can append :square (1∶1), :landscape (16∶9) or :portrait (9∶16) to the pc-frame class in your markup to specify an aspect ratio for the frame. Alternatively you can define the aspect-ratio property to set a custom proportion.

    Edit

    Border radius#

    Frames have a square border radius by default. You can add any of the following pc-border-radius-* classes to an element with pc-frame to specify the border radius:

    • pc-border-radius-s
    • pc-border-radius-m
    • pc-border-radius-l
    • pc-border-radius-xl
    • pc-border-radius-pill
    • pc-border-radius-circle
    • pc-border-radius-square

    Alternatively, you can define the border-radius property to set custom rounding.

    Edit

    We’d love to hear from you. Please reach out to us with any questions or enquiries you may have.

    You can contact us via e‐mail at placer.coc.reports+contact@gmail.com.

    We look forward to hearing from you!

    Got it!
    Dangerous lands

    Whoa! You’ve wandered into the dangerous lands of Placer Toolkit. Version 0 is out of date and doesn’t meet EU privacy standards, including GDPR.

    Want the latest powers, security and compliance? Stick with the current version of Placer Toolkit!

    Yikes! Power up!