Tag: Web design

  • !important is Important

    The !important declaration has really bad reputation, and deservedly so. As is often the way, this reputation results from abuse rather an inherent problem with the property itself. An example of its abuse might be:

    #nav {
      float: none !important;
      /* where did I float this? */
    }
    /* ...jumble of code... */
    ul#nav {
        float: left;
    }

    There are, however, instances where the !important declaration is the best tool for the job.

    (more…)