Cards have position: relative by default in Bootstrap, so in this case you can safely add the .stretched-link class to a link in the card without any other HTML changes.

    Multiple links and tap targets are not recommended with stretched links. However, some and z-index styles can help should this be required.

    Most custom components do not have position: relative by default, so we need to add the .position-relative here to prevent the link from stretching outside the parent element.

    If the stretched link doesn’t seem to work, the will probably be the cause. The following CSS properties will make an element the containing block:

    Stretched link - 图4