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

CSS से बॉर्डर्ड फॉर्म इनपुट्स सेट करें


फॉर्म इनपुट्स पर बॉर्डर सेट करने के लिए CSS border प्रॉपर्टी का उपयोग करें।

बॉर्डर जोड़ने के लिए निम्न कोड चलाकर देखें:

उदाहरण

<!DOCTYPE html> <html>    <head>       <style>          input[type = text] {             width: 100%;             padding: 10px 15px;             margin: 5px 0;             box-sizing: border-box;             border: 3px inset orange;          }       </style>    </head>    <body>       <p>Fill the below form,</p>       <form>          <label for = "subject">Subject</label>          <input type = "text" id = "subject" name = "sub">          <label for = "student">Student</label>          <input type = "text" id = "student" name = "stu">       </form>    </body> </html>

  1. - CSS से निचले-दाएं कोने का बॉर्डर सेट करें

    किसी तत्व के निचले-दाएं कोने को गोलाकार बनाने के लिए border-bottom-right-radius प्रॉपर्टी का उपयोग करें। उदाहरण <html>    <head>       <style>          #rcorner {             border-radius: 25px;  

  1. - CSS से ऊपरी-बाएं कोने का बॉर्डर सेट करें

    border-top-left-radius प्रॉपर्टी ऊपरी-बाएं कोने का बॉर्डर सेट करने के लिए border-top-left-radius प्रॉपर्टी का उपयोग करें। उदाहरण <html> <head> <style> #rcorner { border-radius: 25px; border-top-left-radius: 45px; background: #FADBD8; pad

  1. - CSS के साथ ऊपरी-दायां कोना बॉर्डर सेट करें

    CSS में ऊपरी-दाएं कोने की त्रिज्या सेट करने के लिए border-top-right-radius प्रॉपर्टी का उपयोग करें। उदाहरण <html> <head> <style> #rcorner { border-radius: 25px; border-top-right-radius: 45px; background: orange; padding: 20px;