-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path16css.html
More file actions
79 lines (79 loc) · 10.6 KB
/
Copy path16css.html
File metadata and controls
79 lines (79 loc) · 10.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="CSS Shapes CSS tutorial with English-Hindi explanation, common mistakes and live practice - LoOPCode"><title>16. CSS Shapes - LoOPCode</title><script async src="https://www.googletagmanager.com/gtag/js?id=G-D0ENCWPZL9"></script><script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag('js',new Date());gtag('config','G-D0ENCWPZL9');</script><link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto+Mono&display=swap" rel="stylesheet"><style>*{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:#1f2937;font-family:Poppins,sans-serif;line-height:1.7}header{background:#111827;color:#fff;text-align:center;padding:30px 15px;position:sticky;top:0;z-index:10}header h1{margin:0;font-size:clamp(1.5rem,4vw,2.4rem)}header p{color:#cbd5e1}.progress{max-width:1050px;margin:14px auto;padding:0 18px}.bar{height:8px;background:#e5e7eb;border-radius:20px}.bar span{display:block;height:100%;width:64%;background:#2563eb}.container{max-width:1050px;margin:auto;padding:18px}.topic{background:#fff;margin:24px 0;padding:25px;border-radius:16px;border:1px solid #e5e7eb;box-shadow:0 8px 25px #0000000d}.badge{display:inline-block;background:#dbeafe;color:#1d4ed8;padding:4px 9px;border-radius:20px;font-size:12px;font-weight:700}.topic h2{color:#2563eb}.topic h3{font-size:16px;color:#374151}.topic pre{background:#0f172a;color:#e2e8f0;padding:15px;border-radius:10px;overflow:auto;font-family:monospace}textarea{width:100%;min-height:220px;padding:15px;background:#0b1220;color:#e2e8f0;border:1px solid #334155;border-radius:10px;font-family:monospace;resize:vertical}button{background:#2563eb;color:white;border:0;border-radius:9px;padding:11px 19px;font-weight:700;margin:10px 0;cursor:pointer}iframe{display:block;width:100%;height:200px;border:1px solid #cbd5e1;border-radius:10px;background:white}.challenge{padding:14px;margin-top:14px;background:#ecfdf5;border-left:4px solid #10b981;border-radius:9px;color:#065f46}footer{text-align:center;background:#111827;color:#cbd5e1;padding:30px;margin-top:30px}@media(max-width:650px){.container{padding:9px}.topic{padding:18px}textarea,iframe{height:175px;min-height:175px}}</style></head><body><header><h1>16. CSS Shapes</h1><p>LoOPCode • CSS Complete Learning Chapter</p></header><div class="progress"><div class="bar"><span></span></div></div><main class="container"><section class="topic"><span class="badge">CONCEPT 1</span><h2>1. border-radius shapes</h2><p><b>English:</b> border-radius shapes is an important CSS concept used in modern, responsive and maintainable web development.</p><p><b>Hindi:</b> border-radius shapes ko practical website me use karke design ko responsive, interactive aur professional banaya ja sakta hai. Is concept ko values change karke practice karo.</p><h3>Example</h3><pre>/* border-radius shapes */
.demo {
padding: 24px;
background: #dbeafe;
color: #1e3a8a;
border: 2px solid #2563eb;
border-radius: 12px;
}</pre><h3>Common Mistakes</h3><ul><li>Property/value spelling ya syntax mistake.</li><li>Unnecessarily complex selectors or rules.</li><li>Mobile screen par output test na karna.</li></ul><textarea id="c0"><!DOCTYPE html>
<html><head><style>
.demo{padding:25px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;border-radius:12px;text-align:center;transition:.3s}
.demo:hover{transform:translateY(-3px)}
</style></head><body>
<div class="demo">border-radius shapes — Practice</div>
</body></html></textarea><button onclick="runCode('c0','o0')">▶ Run Code</button><iframe id="o0"></iframe><div class="challenge"><b>🎯 Mini Challenge:</b> Do CSS values change karo, output compare karo, phir apna version banao.</div></section><section class="topic"><span class="badge">CONCEPT 2</span><h2>2. clip-path</h2><p><b>English:</b> clip-path is an important CSS concept used in modern, responsive and maintainable web development.</p><p><b>Hindi:</b> clip-path ko practical website me use karke design ko responsive, interactive aur professional banaya ja sakta hai. Is concept ko values change karke practice karo.</p><h3>Example</h3><pre>/* clip-path */
.demo {
padding: 24px;
background: #dbeafe;
color: #1e3a8a;
border: 2px solid #2563eb;
border-radius: 12px;
}</pre><h3>Common Mistakes</h3><ul><li>Property/value spelling ya syntax mistake.</li><li>Unnecessarily complex selectors or rules.</li><li>Mobile screen par output test na karna.</li></ul><textarea id="c1"><!DOCTYPE html>
<html><head><style>
.demo{padding:25px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;border-radius:12px;text-align:center;transition:.3s}
.demo:hover{transform:translateY(-3px)}
</style></head><body>
<div class="demo">clip-path — Practice</div>
</body></html></textarea><button onclick="runCode('c1','o1')">▶ Run Code</button><iframe id="o1"></iframe><div class="challenge"><b>🎯 Mini Challenge:</b> Do CSS values change karo, output compare karo, phir apna version banao.</div></section><section class="topic"><span class="badge">CONCEPT 3</span><h2>3. circle</h2><p><b>English:</b> circle is an important CSS concept used in modern, responsive and maintainable web development.</p><p><b>Hindi:</b> circle ko practical website me use karke design ko responsive, interactive aur professional banaya ja sakta hai. Is concept ko values change karke practice karo.</p><h3>Example</h3><pre>/* circle */
.demo {
padding: 24px;
background: #dbeafe;
color: #1e3a8a;
border: 2px solid #2563eb;
border-radius: 12px;
}</pre><h3>Common Mistakes</h3><ul><li>Property/value spelling ya syntax mistake.</li><li>Unnecessarily complex selectors or rules.</li><li>Mobile screen par output test na karna.</li></ul><textarea id="c2"><!DOCTYPE html>
<html><head><style>
.demo{padding:25px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;border-radius:12px;text-align:center;transition:.3s}
.demo:hover{transform:translateY(-3px)}
</style></head><body>
<div class="demo">circle — Practice</div>
</body></html></textarea><button onclick="runCode('c2','o2')">▶ Run Code</button><iframe id="o2"></iframe><div class="challenge"><b>🎯 Mini Challenge:</b> Do CSS values change karo, output compare karo, phir apna version banao.</div></section><section class="topic"><span class="badge">CONCEPT 4</span><h2>4. ellipse</h2><p><b>English:</b> ellipse is an important CSS concept used in modern, responsive and maintainable web development.</p><p><b>Hindi:</b> ellipse ko practical website me use karke design ko responsive, interactive aur professional banaya ja sakta hai. Is concept ko values change karke practice karo.</p><h3>Example</h3><pre>/* ellipse */
.demo {
padding: 24px;
background: #dbeafe;
color: #1e3a8a;
border: 2px solid #2563eb;
border-radius: 12px;
}</pre><h3>Common Mistakes</h3><ul><li>Property/value spelling ya syntax mistake.</li><li>Unnecessarily complex selectors or rules.</li><li>Mobile screen par output test na karna.</li></ul><textarea id="c3"><!DOCTYPE html>
<html><head><style>
.demo{padding:25px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;border-radius:12px;text-align:center;transition:.3s}
.demo:hover{transform:translateY(-3px)}
</style></head><body>
<div class="demo">ellipse — Practice</div>
</body></html></textarea><button onclick="runCode('c3','o3')">▶ Run Code</button><iframe id="o3"></iframe><div class="challenge"><b>🎯 Mini Challenge:</b> Do CSS values change karo, output compare karo, phir apna version banao.</div></section><section class="topic"><span class="badge">CONCEPT 5</span><h2>5. polygon</h2><p><b>English:</b> polygon is an important CSS concept used in modern, responsive and maintainable web development.</p><p><b>Hindi:</b> polygon ko practical website me use karke design ko responsive, interactive aur professional banaya ja sakta hai. Is concept ko values change karke practice karo.</p><h3>Example</h3><pre>/* polygon */
.demo {
padding: 24px;
background: #dbeafe;
color: #1e3a8a;
border: 2px solid #2563eb;
border-radius: 12px;
}</pre><h3>Common Mistakes</h3><ul><li>Property/value spelling ya syntax mistake.</li><li>Unnecessarily complex selectors or rules.</li><li>Mobile screen par output test na karna.</li></ul><textarea id="c4"><!DOCTYPE html>
<html><head><style>
.demo{padding:25px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;border-radius:12px;text-align:center;transition:.3s}
.demo:hover{transform:translateY(-3px)}
</style></head><body>
<div class="demo">polygon — Practice</div>
</body></html></textarea><button onclick="runCode('c4','o4')">▶ Run Code</button><iframe id="o4"></iframe><div class="challenge"><b>🎯 Mini Challenge:</b> Do CSS values change karo, output compare karo, phir apna version banao.</div></section><section class="topic"><span class="badge">CONCEPT 6</span><h2>6. shape-outside</h2><p><b>English:</b> shape-outside is an important CSS concept used in modern, responsive and maintainable web development.</p><p><b>Hindi:</b> shape-outside ko practical website me use karke design ko responsive, interactive aur professional banaya ja sakta hai. Is concept ko values change karke practice karo.</p><h3>Example</h3><pre>/* shape-outside */
.demo {
padding: 24px;
background: #dbeafe;
color: #1e3a8a;
border: 2px solid #2563eb;
border-radius: 12px;
}</pre><h3>Common Mistakes</h3><ul><li>Property/value spelling ya syntax mistake.</li><li>Unnecessarily complex selectors or rules.</li><li>Mobile screen par output test na karna.</li></ul><textarea id="c5"><!DOCTYPE html>
<html><head><style>
.demo{padding:25px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;border-radius:12px;text-align:center;transition:.3s}
.demo:hover{transform:translateY(-3px)}
</style></head><body>
<div class="demo">shape-outside — Practice</div>
</body></html></textarea><button onclick="runCode('c5','o5')">▶ Run Code</button><iframe id="o5"></iframe><div class="challenge"><b>🎯 Mini Challenge:</b> Do CSS values change karo, output compare karo, phir apna version banao.</div></section></main><footer>Created by:- Dharmandra Singh</footer><script>function runCode(a,b){const c=document.getElementById(a).value,f=document.getElementById(b),d=f.contentDocument;d.open();d.write(c);d.close()}</script></body></html>