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

Home Forums CSS Tips 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 5 years, 8 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.

Ignite Your Thoughts

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend