ताणून घेतिल्ली दुवो
CSS वरवीं नेस्टेड दुवो “ताणून” खंयचोय HTML घटक वा Bootstrap घटक क्लिक करपाक मेळटा.
ताचो आस्पाव आशिल्लो ब्लॉक छद्म घटका वरवीं क्लिक करपाक मेळपी .stretched-link
करपाक दुव्यांत जोडात . चडशा प्रकरणांनी, हाचो अर्थ वर्गा वांगडा दुवो आशिल्लो घटक क्लिक करपाक मेळटा.::after
position: relative;
.stretched-link
कार्डां कडेन position: relative
पूर्वनिर्धारीतपणान बूटस्ट्रॅपांत आसतात, देखून ह्या प्रकरणांत तुमी सुरक्षीतपणान .stretched-link
कार्डांतल्या दुव्यांत वर्ग जोडूंक शकतात हेर कसलेच HTML बदल करिनासतना.
ताणून दवरिल्ल्या दुव्यां वांगडा एका परस चड दुवे आनी टॅप लक्ष्य शिफारस करूंक नात. पूण कांय position
आनी z-index
शैलींची गरज पडल्यार मदत जावंक शकता.
ताणून दवरिल्ली दुवो आशिल्लें कार्ड
कार्डाच्या शीर्षकाचेर उबारपाक आनी कार्डाच्या सामुग्रीचो व्हडलो वांटो तयार करपाक कांय बेगीन उदाहरण मजकूर.
खंय तरी जा<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
मिडिया ऑब्जेक्टा भायर दुवो ताणचो न्हय म्हूण आमी हांगा जोडपाची गरज आसा.
ताणून दवरिल्ली दुवो आशिल्ली माध्यमां
क्रास बस आमेत निभ लिबेरो, ग्रेविडा नुल्ला में. नुल्ला वेल मेटस स्केलेरिस्क अँटे सोलिसिटुडीन. क्रास पुरस ओडियो, वेस्टिबुलम इन वल्पुटेट अॅट, टेम्पस व्हिवेरा टर्पिस. फ्युसे कॉन्डिमेंटम ननक एसी निसी वल्पुटेट फ्रिंजिला. फॉसिबसांत डोनेक लॅसिनिया कॉंग फेलिस.
खंय तरी जा<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
ताणून दवरिल्ली दुवो आशिल्ले स्तंभ
क्रास बस आमेत निभ लिबेरो, ग्रेविडा नुल्ला में. नुल्ला वेल मेटस स्केलेरिस्क अँटे सोलिसिटुडीन. क्रास पुरस ओडियो, वेस्टिबुलम इन वल्पुटेट अॅट, टेम्पस व्हिवेरा टर्पिस. फ्युसे कॉन्डिमेंटम ननक एसी निसी वल्पुटेट फ्रिंजिला. फॉसिबसांत डोनेक लॅसिनिया कॉंग फेलिस.
खंय तरी जा<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>