Understand – when and where to use CSS3 :not() selector

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by  Sravan Kumar 6 years, 11 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3694

    Sravan Kumar
    Keymaster

    Let me start with a simple example on how to use and when to use this CSS3 :not selector

    div:not(.notme){
    background-color:red;
    }

    The above class applies to DIV which don’t have ‘notme’ as a class – means the DIVs which has got ‘notme’ as a class is ignored. I hope this is pretty clear to you all now.

    The CSS3 :Not() Selector – Here is a wonderful and detailed article with various examples on usage of :not() CSS3 selector.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Send this to a friend