Support » Plugin: Ginger - EU Cookie Law » is the css !important really important?

  • 2046

    (@o-o)


    Hey there,

    what is it for to have the !important css declaration all over?
    Isn’t the common declaration enough?

Viewing 3 replies - 1 through 3 (of 3 total)
  • mdatevercall

    (@mdatevercall)

    !important pretty much means “Apply me, Apply me”. It overrides other CSS, but you’ll have to use it carefully.

    I’m the type that rarely uses them. I think it’s better to just be more specific and if needed override the CSS in another CSS file, that is loaded last.

    tgd

    (@terrydaisydesignsca)

    It seems that some plugin developers overuse the !important declaration to try to prevent site owners from re-styling the look of their plugins. In my opinion (and many others I’m sure) that’s just bad practice. If your plugin element ids and class names are truly unique to the plugin, then the !important declaration is pointless.

    “If your plugin element ids and class names are truly unique to the plugin, then the !important declaration is pointless.”

    that’s what I mean.. the plugin has it for no purpose and I hoped the programmer who did that will skip it in next release.

    • This reply was modified 11 months ago by  2046.
    • This reply was modified 11 months ago by  2046.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘is the css !important really important?’ is closed to new replies.