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

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


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

उदाहरण

CSS में 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 के साथ प्रदर्शित नहीं की गई ओवरफ्लो कंटेंट को यूजर्स को कैसे संकेत दिया जाता है यह निर्धारित करें


  1. CSS से लेबल्स स्टाइल करना CSS से लेबल्स स्टाइल करना

    लेबल स्टाइल्स CSS से लेबल्स स्टाइल करने के लिए निम्न कोड उपयोग करें: उदाहरण <!DOCTYPE html> <html> <head> <meta name=viewport content=width=device-width, initial-scale=1 /> <style> body { font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif; margin: 20px; } span

  1. CSS से स्क्रॉलबार कैसे छिपाएं? CSS से स्क्रॉलबार कैसे छिपाएं?

    CSS से स्क्रॉलबार छिपाने के लिए, कोड निम्नानुसार है -उदाहरण<!DOCTYPE html> <html> <head> <style>    body {       height: 150vh;       width: 200vw;       overflow: hidden;       font-family: "Segoe UI&

  1. CSS से तीर कैसे बनाएं? CSS से तीर कैसे बनाएं?

    CSS से तीर बनाने के लिए, कोड निम्नानुसार है -उदाहरण<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <style>    body {       font-family: "Segoe UI", Tahoma, Geneva