Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> CSS

CSS text-overflow प्रॉपर्टी


text-overflow प्रॉपर्टी निर्धारित करती है कि प्रदर्शित नहीं की गई ओवरफ्लो कंटेंट को यूजर्स को कैसे संकेत दिया जाता है।

उदाहरण

text-overflow का नमूना उदाहरण निम्नानुसार दिखाया गया है:

<html>    <head>       <style>          p.text1 {             white-space: nowrap;             width: 200px;             border: 1px solid #000000;             overflow: hidden;             text-overflow: clip;          }          p.text2 {             white-space: nowrap;             width: 200px;             border: 1px solid #000000;             overflow: hidden;             text-overflow: ellipsis;          }       </style>    </head>    <body>       <b>मूल टेक्स्ट:</b>       <p>Tutorials Point originated from the idea that there exists a class of       readers who respond better to online content and prefer to learn new skills at       their own pace from the comforts of their drawing rooms.</p>       <b>Text overflow:clip:</b>             <p class = "text1">Tutorials Point originated from the idea that there exists       a class of readers who respond better to online content and prefer to learn       new skills at their own pace from the comforts of their drawing rooms.</p>       <b>Text overflow:ellipsis</b>             <p class = "text2">Tutorials Point originated from the idea that there exists       a class of readers who respond better to online content and prefer to learn       new skills at their own pace from the comforts of their drawing rooms.</p>    </body> </html>

आउटपुट

CSS text-overflow प्रॉपर्टी


  1. CSS text-overflow प्रॉपर्टी CSS text-overflow प्रॉपर्टी

    text-overflow प्रॉपर्टी निर्धारित करती है कि प्रदर्शित नहीं की गई ओवरफ्लो कंटेंट को यूजर्स को कैसे संकेत दिया जाता है। उदाहरण text-overflow का नमूना उदाहरण निम्नानुसार दिखाया गया है: <html>    <head>       <style>          p.text1

  1. CSS में writing-mode प्रॉपर्टी CSS में writing-mode प्रॉपर्टी

    writing-mode प्रॉपर्टी का उपयोग यह सेट करने के लिए किया जाता है कि टेक्स्ट की लाइनें क्षैतिज या लंबवत रूप से रखी गई हैं। प्रॉपर्टी मान writing-mode: horizontal-tb | vertical-rl | vertical-lr; उदाहरण <!DOCTYPE html> <html> <head> <style> p { writing-mode: vertic

  1. CSS pointer-events प्रॉपर्टी CSS pointer-events प्रॉपर्टी

    pointer-events प्रॉपर्टी तय करती है कि तत्व पॉइंटर इवेंट (क्लिक, होवर, टच) पर प्रतिक्रिया देगा या नहीं। none से तत्व क्लिक-थ्रू हो जाता है, auto डिफ़ॉल्ट व्यवहार है। उदाहरण <!DOCTYPE html> <html> <head> <style> body { font-family: Segoe UI, Tahoma, Geneva, Verdana, sa