एक ही डिक्लेरेशन में सभी लेफ्ट बॉर्डर प्रॉपर्टीज सेट करने के लिए, borderLeft प्रॉपर्टी का उपयोग करें। लेफ्ट बॉर्डर प्रॉपर्टीज सेट करना सीखने के लिए निम्न कोड चलाकर देखें:
उदाहरण
<!DOCTYPE html> <html> <head> <style> #box { border: thick solid gray; width: 300px; height: 200px } </style> </head> <body> <div id = "box">Demo Text</div> <br> <br> <button type = "button" onclick = "display()">लेफ्ट बॉर्डर बदलें</button> <script> function display() { document.getElementById("box").style.borderLeft = "thick solid #000000"; } </script> </body> </html>