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

Tagged: ,

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

    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.
Share via
Send this to a friend