Add `.stretched-link` to a link to make it's [containing block](https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block) clickable via a `::after` pseudo element. In most cases, this means that an element with `position: relative;` that contains a link with the `.stretched-link` class is clickable.
<p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
<ahref="#"class="stretched-link">Go somewhere</a>
</div>
</div>
{% endcapture %}
{% include example.html content=example %}
Columns are relative by default, so if we want to stretch the link over a row, we need to add the `.position-static` class to column and add the `.position-relative` to the row.
<p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p>
<ahref="#"class="stretched-link">Go somewhere</a>
</div>
</div>
{% endcapture %}
{% include example.html content=example %}
Multiple links can be added to elements with a stretched link, but their `z-index` must be increased to be become clickable.
<h5class="card-title">Card with multiple links</h5>
<pclass="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<pclass="card-text">
<ahref="#"class="stretched-link">The whole card will be linked to this link</a>
</p>
<pclass="card-text">
<ahref="#"class="text-danger">This link will be unclickable, because the previous link is stretched over this link</a>
</p>
<pclass="card-text">
<ahref="#"style="position: relative; z-index: 2;"class="text-success">This link will be clickable because <code>position: relative</code> is added and the z-index is higher than the z-index of the <code>::after</code> pseudo element of the stretched link</a>
</p>
</div>
</div>
{% endcapture %}
{% include example.html content=example %}
## Identifying the containing block
If the stretched link doesn't seem to work, the [containing block](https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#Identifying_the_containing_block) will probably be the cause. The following CSS properties will make an element the containing block:
- A `position` value other than `static`
- A `transform` or `perspective` value other than `none`
- A `will-change` value of `transform` or `perspective`
- A `filter` value other than `none` or a `will-change` value of `filter` (only works on Firefox)
<h5class="card-title">Card with stretched links</h5>
<pclass="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<pclass="card-text">
<ahref="#"class="stretched-link text-danger"style="position: relative;">Stretched link will not work here, because <code>position: relative</code> is added to the link</a>
This <ahref="#"class="text-warning stretched-link">stretched link</a> will only be spread over the <code>p</code>-tag, because a transform is applied to it.