Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> 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; }
img { width: 100%; }
.couponContainer { border: 5px dashed #bbb; width: 80%; border-radius: 15px; margin: 0 auto; max-width: 600px; }
.detailContainer { padding: 2px 16px; background-color: #d4d4d4; }
.promo { background: rgb(104, 104, 104); color: white; padding: 10px; }
.expiryDate { color: red; font-weight: bold; }
</style>
</head>
<body>
<div class="couponContainer">
<div class="detailContainer"><h3>Food Inc ©</h3></div>
<img src="https://images.pexels.com/photos/376464/pexels-photo376464.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500"/>
<div class="detailContainer" style="background-color:white"><h2>Worlds Best Pancakes</h2></div>
<div class="detailContainer">
<p> Use code <span class="promo">Free24</span> to get 24% off on your next dish </p>
<p class="expiryDate">Expires in 20 days</p>
</div>
</div>
</body>
</html>

आउटपुट

CSS से कूपन बनाना


  1. CSS से प्रोफाइल कार्ड कैसे बनाएं? CSS से प्रोफाइल कार्ड कैसे बनाएं?

    प्रोफाइल कार्ड उपयोगकर्ता अवतार, नाम, पदनाम, स्थान, और संपर्क बटन दिखाता है। प्रोडक्ट कार्ड के समान संरचना लेकिन उपयोगकर्ता जानकारी के लिए अनुकूलित। उदाहरण <!DOCTYPE html> <html> <head> <style> body { font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif; } .

  1. CSS से बेसिक कार्ड कैसे बनाएं? CSS से बेसिक कार्ड कैसे बनाएं?

    बेसिक कार्ड में इमेज, नाम, पदनाम होता है। बॉक्स-शैडो, होवर पर शैडो गहरी, पदनाम बैज स्टाइल, रिस्पॉन्सिव चौड़ाई (40%, मैक्स 300px)। उदाहरण <!DOCTYPE html> <html> <head> <meta name=viewport content=width=device-width, initial-scale=1> <style> body { font-family:

  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