The universal selector can be very useful if you are creating a 3rd party widget for any other website to use and you don't want their css to affect you. Then you can do something like:
#my-widget > * { position: relative !important; padding: 0 !important; margin: 0 !important; .. etc .. }
Which can act like css reset just for the elements contained within the widget you are creating.
Nice, that's a really good workaround for specificity issues!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The universal selector can be very useful if you are creating a 3rd party widget for any other website to use and you don't want their css to affect you. Then you can do something like:
Which can act like css reset just for the elements contained within the widget you are creating.
Nice, that's a really good workaround for specificity issues!