: Selector priority : Style Basics HTML CSS TUTORIALS
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
HTML CSS TUTORIALS
»
Style Basics
»
Selector priority
»
127.1 .
Some properties in CSS are inherited to children elements
Hits: 1512
127.2 .
the id selector is more specific than the element selector
Hits: 1505
127.3 .
Latter one overwrite the former one
Hits: 1618
127.4 .
!important has higher priority
Hits: 1699
127.5 .
Specificity, !important
Hits: 1580
127.6 .
select elements by type, class, and/or ID
Hits: 1629
127.7 .
Cascade Order
Hits: 1770
127.8 .
Style is overwritable
Hits: 1601
127.9 .
Specificity means that more specific selectors are given priority over less specific selectors
Hits: 1546
127.10 .
Six selector groups listed from highest to lowest priority
Hits: 1594
127.11 .
Selectors choose the element to apply formatting to
Hits: 1533
HTML CSS TUTORIALS
Style Basics
»
Selector priority
attribute selector
Block Elements
Child Selector
Class Selector
color
comments
CSS Basics
cursor
Element Selector
em
entity
Group Selector
ID Selector
import
important
inherit
Inheritance
Inline Style
Level Selector
measurement
media
Pseudo Class
rgb
Selector priority
selector
Sibling Selector
Style file
Style overwrite
Tag Selector
url
wild card
Background Attributes
Basic Attributes
Basic Tags
Box Model
CSS Attributes and Javascript Style Properties
CSS Controls
Form Attributes
Form Style
Form Tags
Frame Attributes
Frame Tags
HTML
IE Firefox
Images
Layout
Layout Attributes
Link Attributes
Link Tags
List Attributes
List Style
List Tags
Marquee Attributes
Meta Tags
Microsoft Attributes
Object Attributes
Object Tags
Reference
Style Basics
Styles Tags
Table Attributes
Table Style
Table Tags
Text
Text Attributes
Text Tags
XML