Results 1 to 4 of 4

What are the different types of CSS selectors?

This is a discussion on What are the different types of CSS selectors? within the Web Design forums, part of the Web Designing & Development category; CSS selectors are very useful in contact form or inquiry form web page design to show various actions clearly. User ...

  1. #1
    Member
    Join Date
    Feb 2018
    Location
    Hyderabad, India
    Posts
    78

    Default What are the different types of CSS selectors?

    CSS selectors are very useful in contact form or inquiry form web page design to show various actions clearly.
    User agents are required to ignore a rule with an unknown selector. See Selectors Level 3:

    a group of selectors containing an invalid selector is invalid.

    So we need separate rules for each browser. Otherwise the whole group would be ignored by all browsers.
    would be ignored by all browsers.

    ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: #909;
    }
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: #909;
    opacity: 1;
    }
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: #909;
    opacity: 1;
    }
    :-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #909;
    }
    ::-ms-input-placeholder { /* Microsoft Edge */
    color: #909;
    }

    ::placeholder { /* Most modern browsers support this now. */
    color: #909;

  2. #2
    Senior Member
    Join Date
    Mar 2018
    Location
    Australia
    Posts
    475

    Default Re: What are the different types of CSS selectors?

    CSS selectors are used to selecting the content you want to style. Selectors are the part of CSS rule set. CSS selectors select HTML elements according to its id, class, type, attribute etc. There are several different types of selectors in CSS. as like, Universal Selector, Element Type Selector, ID Selector and Class Selector etc.

  3. #3
    Senior Member buyinstagramfollower's Avatar
    Join Date
    Dec 2017
    Posts
    197

    Default Re: What are the different types of CSS selectors?

    CSS Selectors

    • Introducing CSS Selectors. A CSS selector is the part of a CSS rule set that actually selects the content you want to style. ...
    • Universal Selector. ...
    • Element Type Selector. ...
    • ID Selector. ...
    • Class Selector. ...
    • Descendant Combinator. ...
    • Child Combinator. ...
    • General Sibling Combinator.

  4. #4
    Senior Member RH-Calvin's Avatar
    Join Date
    Jun 2013
    Posts
    3,255

    Default Re: What are the different types of CSS selectors?

    Different CCS selectors are:

    - Universal selector
    - Element type selector
    - ID selector
    - Class selector
    - Descendant combinator
    - Child combinator
    - General sibling combinator
    - Adjacent sibling combinator
    - Attribute selector
    - Pseudo-class
    - Pseudo-element
    Cheap VPS | $1 VPS Hosting | Windows with Remote Desktop
    Cheap Dedicated Server | $29 Dedicated Server with Free IPMI Setup