कैसे बनाएं: गोलाकार बटन
- पिछला पृष्ठ लिखित बटन
- अगला पृष्ठ शीर्ष पर वापस जाना
CSS के द्वारा गोलाकार बटन के शैली को कैसे सेट करें सीखें।
गोलाकार बटन के शैली का डिजाइन कैसे करें
पहला कदम - HTML जोड़ें:
<button class="button button1">2px</button> <button class="button button2">4px</button> <button class="button button3">8px</button> <button class="button button4">12px</button> <button class="button button5">50%</button>
दूसरा कदम - CSS जोड़ें:
उपयोग करें border-radius
बटन में गोलाकार को जोड़ें:
.button { background-color: #04AA6D; border: none; color: white; padding: 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; } .button1 {border-radius: 2px;} .button2 {border-radius: 4px;} .button3 {border-radius: 8px;} .button4 {border-radius: 12px;} .button5 {border-radius: 50%;}
संबंधित पृष्ठ
पाठ्यक्रम:CSS बटन
- पिछला पृष्ठ लिखित बटन
- अगला पृष्ठ शीर्ष पर वापस जाना