@@include("../partials/head.html")
@@include("../partials/doc-navbar.html")
@@include("../partials/doc-sidenav.html")

# Ratios

Use generated pseudo elements to make an element maintain the aspect ratio of your choosing. Perfect for responsively handling video or slideshow embeds based on the width of the parent.

## Aspect ratios

Aspect ratios can be customized with modifier classes. By default the following ratio classes are provided:

1x1
4x3
16x9
21x9

    <!-- Ratio-->
                            <div class="ratio ratio-1x1">
                            <div>1x1</div>
                            </div>
                            <div class="ratio ratio-4x3">
                            <div>4x3</div>
                            </div>
                            <div class="ratio ratio-16x9">
                            <div>16x9</div>
                            </div>
                            <div class="ratio ratio-21x9">
                            <div>21x9</div>
                            </div>

@@include("../partials/buy-template.html") @@include("../partials/scripts.html")