Skip to content

Commit 906e82f

Browse files
committed
combinator tricks added
1 parent 0bf8292 commit 906e82f

1 file changed

Lines changed: 38 additions & 1 deletion

File tree

data/css.json

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,24 @@
7474
"code": " <p class='important special'>This is an important and special paragraph.</p>\np[class~='special'] {\ncolor: red;\n}"
7575
},
7676
{
77-
"definition": "এট্রিবিউট ভ্যালু আংশিক এর উপর নির্ভর সিলেক্ট করা ",
77+
"definition": "এট্রিবিউট ভ্যালু আংশিক এর উপর নির্ভর সিলেক্ট করা " ,
7878
"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 "
7995
}
8096
]
8197
},
@@ -189,6 +205,27 @@
189205
"code": "transform: scale(1, 1);"
190206
}
191207
]
208+
},
209+
{
210+
"title": "কম্বিনেটরস ",
211+
"items": [
212+
{
213+
"definition": "body article p{\ncolor:red\n}\n\t এখানে সর্বশেষ অর্থাৎ p ইলিমেন্ট কে সিলেক্ট করা হয়েছে যার parent 'artice' এবং তার parent 'body' ।"
214+
},
215+
{
216+
"definition": "চাইল্ড কম্বিনেটর",
217+
"code": "ul > li {\nborder-top: 5px solid red;\n}\n} এখানে শুধুমাত্র ul এর চাইল্ড li গুলোকে সিলেক্ট করা হয়েছে।"
218+
},
219+
{
220+
"definition": "ইমিডিয়েট সিব্লিং কম্বিনেটর",
221+
"code": "h1 + p {\ncolor: red;\n}\nএখানে শুধুমাত্র h1 এর ইমিডিয়েট সিবলিং p কে সিলেক্ট করা হয়েছে।"
222+
},
223+
{
224+
"definition": "পরবর্তী সিব্লিং সিলেক্টর",
225+
"code": " h1 ~ p {\ncolor: red;\n}\nএখানে h1 এর পরবর্তী সিবলিং p গুলোকে সিলেক্ট করা হয়েছে। এখানে শুধু ইমিডীয়েট সিব্লিং কেই সিলেক্ট করবে না বরং পরবর্তী সিবলিং গুলোকেও সিলেক্ট করবে।"
226+
}
227+
228+
]
192229
}
193230
]
194231
}

0 commit comments

Comments
 (0)