Skip to content

Commit 2c2752d

Browse files
author
Sabbir Ahmed
authored
Merge pull request #1078 from AlAminKh03/combinator-tricks
Combinator tricks
2 parents 5f2336c + 530ca17 commit 2c2752d

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

data/css.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,60 @@
3939
]
4040
},
4141
{
42+
"title": "সিলেক্টর ট্রিক্স",
43+
"items": [
44+
{
45+
"definition": "HTML ইলিমেন্টস গুলোকে CSS এর সাহায্যে সিলেক্ট করার পদ্ধতি কে বলে সিলেক্টর এবং প্রতিটা কোনো ইলিমেন্টসের জন্য লিখিত CSS কে CSS rule বলা হয়",
46+
"code": "selector{ property: value;}"
47+
},
48+
{
49+
"definition": "টাইপ সিলেক্টর\n কোনো Html tag বা elements দিয়ে সিলেক্ট করাকেই টাইপ সিলেক্টর বলা হয়। এটাকে অনেকে ট্যাগ সিলেক্টর ও বলা হয়ে থাকে",
50+
"code": "span {\n background-color: yellow;\n} \nh1 {\ncolor: rebeccapurple;\n}"
51+
},
52+
{
53+
"definition": "Id সিলেক্টর\n কোনো ইলিমেন্ট কে id দিয়ে সিলেক্ট করাই id সিলেক্টর এর কাজ । # দিয়ে এই সিনট্যাক্স ব্যাবহার করতে হয় ",
54+
"code": "<h1 id='heading'>ID selector</h1>\n\n#heading {\n color: red;\n}"
55+
},
56+
{
57+
"definition": "class সিলেক্টর \n কোনো ইলিমেন্ট কে class দিয়ে সিলেক্ট করাই class সিলেক্টর এর কাজ । . দিয়ে এই সিনট্যাক্স ব্যাবহার করতে হয় ",
58+
"code": "<h1 class='heading'>class selector</h1>\n<h2 class='heading'> class selector 2 </h2>\n.heading {\n color: red;\n}"
59+
},
60+
{
61+
"definition": "universal Selector \n সকল ইলিমেন্ট সিলেক্ট করতে * ব্যাবহার করা হয়। এটা অনেকে স্টার সিলেক্টর ও বলা হয়ে থাকে।",
62+
"code": " * {\n color: red;\n}"
63+
},
64+
{
65+
"definition": "Attribute Selector \n কোনো ইলিমেন্ট এর কোনো এট্রিবিউট এর উপর ভিত্তি করে সিলেক্ট করাকে এট্রিবিউট সিলেক্টর বলা হয়। কয়েক ধরনের এট্রিবিউট সিলেক্টর আছে।",
66+
"code": "<a href='https://www.example.com' title='Example Link 1'>Link 1</a>\n\t a[title] {\ncolor: blue;\ntext-decoration: underline;\n}"
67+
},
68+
{
69+
"definition": "এট্রিবিউট ভ্যালুর উপর নির্ভর করে সিলেক্ট করা",
70+
"code": " <a href='https://example.com'>Visit Example</a>\na[href='https://example.com'] {\ncolor: green;\nfont-weight:bold;\n}"
71+
},
72+
{
73+
"definition": "এট্রিবিউট ভ্যালু স্পেস সেপারেটেড বা লিস্ট আকারে থাকলে তার উপর ভিত্তি করে সিলেক্ট করা",
74+
"code": " <p class='important special'>This is an important and special paragraph.</p>\np[class~='special'] {\ncolor: red;\n}"
75+
},
76+
{
77+
"definition": "এট্রিবিউট ভ্যালু আংশিক এর উপর নির্ভর সিলেক্ট করা " ,
78+
"code": " <div lang='zh'>This is content in Chinese (zh).</div>\n<div lang='zh-HK'>This is content in Chinese (zh-HK).</div>\n<div lang='en-US'>This is content in English (en-US).</div>\np[class।='zh'] {\ncolor: red;\n}\nএখানে শুধু প্রথম ২ টা div সিলেক্ট হবে।"
79+
},
80+
{
81+
"definition": "এট্রিবিউট এর যেকোনো ভ্যালুর জন্য *" ,
82+
"code": " <p class='important special'>This is an important and special paragraph.</p>\np[class*='sp'] {\ncolor: red;\n}\n এটা এখনো p element কে সিলেক্ট করবে "
83+
},
84+
{
85+
"definition": "এট্রিবিউট ভ্যালুর প্রথম অংশের সাহায্যে সিলেক্ট করা " ,
86+
"code": " <p class='important special'>This is an important and special paragraph.</p>\np[class^='important'] {\ncolor: red;\n}\n "
87+
},
88+
{
89+
"definition": "এট্রিবিউট ভ্যালুর শেষ অংশের সাহায্যে সিলেক্ট করা " ,
90+
"code": " <p class='important special'>This is an important and special paragraph.</p>\np[class$='special'] {\ncolor: red;\n}\n "
91+
},
92+
{
93+
"definition": "কেইস ইনসেনসেটিভ করে সিলেক্ট করা" ,
94+
"code": " <p class='important Special'>This is an important and special paragraph.</p>\np[class$='special ' i] {\ncolor: red;\n}\n "
95+
}
4296
"title": "গুগলে CSS প্রপারটিজ কিভাবে সার্চ করবো? (How to Google CSS properties?)",
4397
"items": [
4498
{
@@ -157,6 +211,27 @@
157211
"code": "transform: scale(1, 1);"
158212
}
159213
]
214+
},
215+
{
216+
"title": "কম্বিনেটরস ",
217+
"items": [
218+
{
219+
"definition": "body article p{\ncolor:red\n}\n\t এখানে সর্বশেষ অর্থাৎ p ইলিমেন্ট কে সিলেক্ট করা হয়েছে যার parent 'artice' এবং তার parent 'body' ।"
220+
},
221+
{
222+
"definition": "চাইল্ড কম্বিনেটর",
223+
"code": "ul > li {\nborder-top: 5px solid red;\n}\n} এখানে শুধুমাত্র ul এর চাইল্ড li গুলোকে সিলেক্ট করা হয়েছে।"
224+
},
225+
{
226+
"definition": "ইমিডিয়েট সিব্লিং কম্বিনেটর",
227+
"code": "h1 + p {\ncolor: red;\n}\nএখানে শুধুমাত্র h1 এর ইমিডিয়েট সিবলিং p কে সিলেক্ট করা হয়েছে।"
228+
},
229+
{
230+
"definition": "পরবর্তী সিব্লিং সিলেক্টর",
231+
"code": " h1 ~ p {\ncolor: red;\n}\nএখানে h1 এর পরবর্তী সিবলিং p গুলোকে সিলেক্ট করা হয়েছে। এখানে শুধু ইমিডীয়েট সিব্লিং কেই সিলেক্ট করবে না বরং পরবর্তী সিবলিং গুলোকেও সিলেক্ট করবে।"
232+
}
233+
234+
]
160235
}
161236
]
162237
}

0 commit comments

Comments
 (0)