Browser categorize css to 4 categories with the specificity from high to low as:
1/ Style Attribute: <li style="color:white"/>
2/ ID: #some_id{ color: red;}
3/ Class, pseudo class, attribute: .some_class {color:green;}
4/ Elements: li {color:black;}
From W3C recommendation, the result of this calculation takes the form of four comma-separated values,
a,b,c,d
,1 where the values in column “a
” are the most important and those in column “d
” are least important. A selector’s specificity is calculated as follows:- To calculate
a
, count 1 if the declaration is from astyle
attribute rather than a rule with a selector (an inline style), 0 otherwise.
- To calculate
b
, count the number of ID attributes in the selector.
- To calculate
c
, count the number of other attributes and pseudo-classes in the selector.
- To calculate
d
, count the number of element names and pseudo-elements in the selector.
Here is one example using this rule:
body#home div#warning p.message --> 0, 2, 1, 3
Please notice the comma ',' in the css score, it is there to remind us that the score b, c, d can be equal or bigger than 10. Still, the rule to compare is left to right.
ReplyDeletevidmate
ReplyDeletePermainan tembak ikan adalah permainan yang paling rame orang mainkan, apalagi jika pelayanannya yang sangat memuaskan bagi anda tentunya kalian pasti akan merasa sangat puas juga kan ?, bagi kalian yang sangat menyukai permainan tembak ikan bisa datang ke situs kami :)
https://www.aplikasijoker123.org/
https://www.aplikasijoker123.org/daftar-akun-slot-joker123/
https://www.aplikasijoker123.org/login-joker388-slot/
https://www.aplikasijoker123.org/joker123-deposit-pulsa/
https://www.aplikasijoker123.org/download-joker388-apk/
https://www.aplikasijoker123.org/link-alternatif-joker123/
Thanks for sharing! I like your blog and keep upadte us.
ReplyDeleteChatbot companies in india,
Chatbot development company,
Chatbot companies,
Messenger bot developer,
Facebook bot development,
Chatbot developer,
Bot developer,
A Chatbot Development is a product program for reproducing wise discussions with human utilizing rules or man-made brainpower. Clients connect with the Chatbot development service by means of conversational interface through composed or spoken content. Chatbots can live in informing stages like Slack, Facebook Messenger bot developer and Telegram and fill some needs – requesting items, thinking about climate and dealing with your fund in addition to other things. As a Chatbot development company advancement organization our competency let you find happiness in the hereafter by taking care of clients all the more intelligently to accomplish wanted outcome. As a Chatbot companies we can streamline a large portion of your dreary undertakings, for example, voice bot advancement and client service, online business advices and so on
ReplyDeleteNice post, you provided a valuable information, keep going. امیر تتلو
ReplyDeleteمهدی جهانی
google 4195
ReplyDeletegoogle 4196
google 4197
google 4198
google 4199
google 3360
ReplyDeletegoogle 3361
google 3362
google 3363
google 3364
google 3365
Howdy! I simply would like to give a huge thumbs up for the good data you have here on this post. I will probably be coming again to your weblog for more soon. Unique Dofollow Backlinks
ReplyDelete울산콜걸
ReplyDelete제주도콜걸
제주콜걸
서귀포콜걸
수원콜걸
용인콜걸
성남콜걸
부천콜걸