Stretching a LayoutItem using the flexibility attribute

Let's stretch the cards by setting the flexible attribute of the component to auto

<aura:application extends="force:slds">    <Lightning:layout verticalAlign="start">            <Lightning:layoutItem flexibility="auto" padding="around-small">               <Lightning:card title="1">                    <p class="slds-p-horizontal_small">                        Card 1                    </p>          </Lightning:card>            </Lightning:layoutItem>            <Lightning:layoutItem flexibility="auto" padding="around-small">                <Lightning:card title="2">                    <p class="slds-p-horizontal_small">                        Card 2                    </p>          </Lightning:card>            </Lightning:layoutItem>            <Lightning:layoutItem flexibility="auto" padding="around-small">                <Lightning:card title="3">                    <p class="slds-p-horizontal_small">                        Card 3                    </p>          </Lightning:card> </Lightning:layoutItem> ...

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.