ବିସ୍ତାରିତ ଲିଙ୍କ୍ |
ଯେକ any ଣସି HTML ଉପାଦାନ କିମ୍ବା ବୁଟଷ୍ଟ୍ରାପ୍ ଉପାଦାନକୁ CSS ମାଧ୍ୟମରେ ଏକ ନେଷ୍ଟେଡ୍ ଲିଙ୍କ୍ “ଷ୍ଟ୍ରେଚ୍” କରି କ୍ଲିକ୍ ଯୋଗ୍ୟ କରନ୍ତୁ |
ଏକ ଛଦ୍ମ ଉପାଦାନ ମାଧ୍ୟମରେ ଏହାର ଧାରଣ କରିଥିବା ବ୍ଲକକୁ କ୍ଲିକ୍ .stretched-link
କରିବାକୁ ଏକ ଲିଙ୍କରେ ଯୋଡନ୍ତୁ | ଅଧିକାଂଶ କ୍ଷେତ୍ରରେ, ଏହାର ଅର୍ଥ ହେଉଛି ଯେ ଏକ ଉପାଦାନ ସହିତ ଶ୍ରେଣୀ ସହିତ ଏକ ଲିଙ୍କ କ୍ଲିକ୍ ଯୋଗ୍ୟ ଅଟେ |::after
position: relative;
.stretched-link
କାର୍ଡଗୁଡ଼ିକ ଡିଫଲ୍ଟ ଭାବରେ ବୁଟଷ୍ଟ୍ରାପରେ ଅଛି, ତେଣୁ ଏହି କ୍ଷେତ୍ରରେ ଆପଣ ଅନ୍ୟ HTML ପରିବର୍ତ୍ତନ ବିନା କାର୍ଡରେ ଥିବା ଏକ ଲିଙ୍କରେ position: relative
ସୁରକ୍ଷିତ ଭାବରେ ଶ୍ରେଣୀକୁ ଯୋଡିପାରିବେ |.stretched-link
ଷ୍ଟ୍ରେଡ୍ ଲିଙ୍କ୍ ସହିତ ଏକାଧିକ ଲିଙ୍କ୍ ଏବଂ ଟ୍ୟାପ୍ ଟାର୍ଗେଟ୍ ସୁପାରିଶ କରାଯାଏ ନାହିଁ | ଯଦିଓ, ଏହା ଆବଶ୍ୟକ ହେଲେ କିଛି position
ଏବଂ z-index
ଶ yles ଳୀ ସାହାଯ୍ୟ କରିଥାଏ |
ଷ୍ଟ୍ରେଡ୍ ଲିଙ୍କ୍ ସହିତ କାର୍ଡ |
କାର୍ଡ ଶିରୋନାମା ଉପରେ ନିର୍ମାଣ ଏବଂ କାର୍ଡର ବିଷୟବସ୍ତୁର ଅଧିକାଂଶ ଅଂଶ ଗଠନ କରିବାକୁ କିଛି ଶୀଘ୍ର ଉଦାହରଣ ପାଠ୍ୟ |
କ ewhere ଣସି ସ୍ଥାନକୁ ଯାଅ |<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card with stretched link</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary stretched-link">Go somewhere</a>
</div>
</div>
ମିଡିଆ ବସ୍ତୁଗୁଡ଼ିକର ଡିଫଲ୍ଟ ଭାବରେ ନାହିଁ , ତେଣୁ ମିଡିଆ ବସ୍ତୁ ବାହାରେ ଲିଙ୍କ୍ ବିସ୍ତାର ନହେବା ପାଇଁ ଆମକୁ ଏଠାରେ position: relative
ଯୋଡିବା ଆବଶ୍ୟକ |.position-relative
ପ୍ରସାରିତ ଲିଙ୍କ୍ ସହିତ ମିଡିଆ |
ଗ୍ରାଭିଡା ନଲ୍ଲାରେ କ୍ରାସ୍ ଆମ୍ଟ୍ ନିବ୍ ଲିବେରୋ ବସିଥାଏ | Nulla vel metus scelerisque ante sollicitudin | କ୍ରାସ୍ ପୁରସ୍ ଓଡିଓ, ଭାଲପୁଟେଟ୍ ରେ ଭେଷ୍ଟିବୁଲମ୍, ଟେମ୍ପସ୍ ଭିଭେରା ଟର୍ପିସ୍ | Fusce condimentum nunc ac nisi vulputate fringilla | ଫାଉସିବସରେ ଡୋନେକ୍ ଲାସିନିଆ କନଗ୍ ଫେଲିସ୍ |
କ ewhere ଣସି ସ୍ଥାନକୁ ଯାଅ |<div class="media position-relative">
<img src="..." class="mr-3" alt="...">
<div class="media-body">
<h5 class="mt-0">Media 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>
</div>
</div>
ସ୍ତମ୍ଭଗୁଡିକ position: relative
ଡିଫଲ୍ଟ ଭାବରେ, ତେଣୁ କ୍ଲିକ୍ ଯୋଗ୍ୟ ସ୍ତମ୍ଭଗୁଡ଼ିକ କେବଳ .stretched-link
ଏକ ଲିଙ୍କରେ ଶ୍ରେଣୀ ଆବଶ୍ୟକ କରେ | ତଥାପି, ଏକ ସଂପୂର୍ଣ୍ଣ ଉପରେ ଏକ ଲିଙ୍କ୍ ବିସ୍ତାର କରିବା ସ୍ତମ୍ଭ ଏବଂ ଧାଡିରେ .row
ଆବଶ୍ୟକ କରେ |.position-static
.position-relative
ପ୍ରସାରିତ ଲିଙ୍କ୍ ସହିତ ସ୍ତମ୍ଭଗୁଡିକ |
ଗ୍ରାଭିଡା ନଲ୍ଲାରେ କ୍ରାସ୍ ଆମ୍ଟ୍ ନିବ୍ ଲିବେରୋ ବସିଥାଏ | Nulla vel metus scelerisque ante sollicitudin | କ୍ରାସ୍ ପୁରସ୍ ଓଡିଓ, ଭାଲପୁଟେଟ୍ ରେ ଭେଷ୍ଟିବୁଲମ୍, ଟେମ୍ପସ୍ ଭିଭେରା ଟର୍ପିସ୍ | Fusce condimentum nunc ac nisi vulputate fringilla | ଫାଉସିବସରେ ଡୋନେକ୍ ଲାସିନିଆ କନଗ୍ ଫେଲିସ୍ |
କ ewhere ଣସି ସ୍ଥାନକୁ ଯାଅ |<div class="row no-gutters bg-light position-relative">
<div class="col-md-6 mb-md-0 p-md-4">
<img src="..." class="w-100" alt="...">
</div>
<div class="col-md-6 position-static 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>
</div>
</div>
ଧାରଣ କରିଥିବା ବ୍ଲକକୁ ଚିହ୍ନିବା
ଯଦି ବିସ୍ତାରିତ ଲିଙ୍କ୍ କାମ କରୁଥିବାର ଦେଖାଯାଏ ନାହିଁ, ଧାରଣ କରିଥିବା ବ୍ଲକଟି ବୋଧହୁଏ ଏହାର କାରଣ ହେବ | ନିମ୍ନଲିଖିତ CSS ଗୁଣଗୁଡ଼ିକ ଧାରଣ କରିଥିବା ବ୍ଲକକୁ ଏକ ଉପାଦାନ କରିବ:
- ଏହା ବ୍ୟତୀତ ଅନ୍ୟ ଏକ
position
ମୂଲ୍ୟ |static
transform
ଏହା ବ୍ୟତୀତ ଅନ୍ୟ ଏକperspective
ମୂଲ୍ୟ |none
- ର ଏକ
will-change
ମୂଲ୍ୟtransform
କିମ୍ବାperspective
- ଏହା
filter
ବ୍ୟତୀତ ଅନ୍ୟ ଏକ ମୂଲ୍ୟ (କେବଳ ଫାୟାରଫକ୍ସରେ କାମ କରେ)none
will-change
filter
ପ୍ରସାରିତ ଲିଙ୍କ୍ ସହିତ କାର୍ଡ |
କାର୍ଡ ଶିରୋନାମା ଉପରେ ନିର୍ମାଣ ଏବଂ କାର୍ଡର ବିଷୟବସ୍ତୁର ଅଧିକାଂଶ ଅଂଶ ଗଠନ କରିବାକୁ କିଛି ଶୀଘ୍ର ଉଦାହରଣ ପାଠ୍ୟ |
ବିସ୍ତାରିତ ଲିଙ୍କ୍ ଏଠାରେ କାମ କରିବ ନାହିଁ, କାରଣ position: relative
ଲିଙ୍କରେ ଯୋଡା ଯାଇଛି |
ଏହି ପ୍ରସାରିତ ଲିଙ୍କ୍ କେବଳ ଟ୍ୟାଗ୍ ଉପରେ ବିସ୍ତାର ହେବ p
, କାରଣ ଏଥିରେ ଏକ ପରିବର୍ତ୍ତନ ପ୍ରୟୋଗ କରାଯାଏ |
<div class="card" style="width: 18rem;">
<img src="..." class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card with stretched links</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<p class="card-text">
<a href="#" 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>
</p>
<p class="card-text bg-light" style="transform: rotate(0);">
This <a href="#" 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.
</p>
</div>
</div>