mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Bootstrap 5 grid documentation
Co-authored-by: Mark Otto <markd.otto@gmail.com>
This commit is contained in:
@@ -35,14 +35,13 @@ Most custom components do not have `position: relative` by default, so we need t
|
||||
</div>
|
||||
{{< /example >}}
|
||||
|
||||
Columns are `position: relative` by default, so clickable columns only require the `.stretched-link` class on a link. However, stretching a link over an entire `.row` requires `.position-static` on the column and `.position-relative` on the row.
|
||||
|
||||
{{< example >}}
|
||||
<div class="row no-gutters bg-light position-relative">
|
||||
<div class="row g-0 bg-light position-relative">
|
||||
<div class="col-md-6 mb-md-0 p-md-4">
|
||||
{{< placeholder width="100%" height="200" class="w-100" text="false" title="Generic placeholder image" >}}
|
||||
</div>
|
||||
<div class="col-md-6 position-static p-4 pl-md-0">
|
||||
<div class="col-md-6 p-4 pl-md-0">
|
||||
<h5 class="mt-0">Columns with stretched link</h5>
|
||||
<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>
|
||||
<a href="#" class="stretched-link">Go somewhere</a>
|
||||
|
||||
Reference in New Issue
Block a user