If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Maryland, US
    Member #
    21 times
    Just as [minicode]!important[/minicode] after a CSS rule makes that rule override any other rules, is there a counterpart that applies the rule only if no other rules are defined?

    For example, I want to apply a border and a background color to a given element, but only if no other rule specifies it already. Sort of like !notimportant, !lowpriority, etc.
    filburt1, Web Design founder
    Site of the Month contest: submit your site or vote for the winner!


  3. #2
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    San Francisco, CA
    Member #
    2 times
    Put it further up on the stylesheet.

    <div class="lightbox bordered">
    this might be bordered
    .bordered{ border:1px solid red; }
    .lightbox{ border:1px solid blue; }
    .myspecialclass #lala .bordered{border:none;}
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search tags for this page

opposite of important


opposite of important css

opposite of important is what
Click on a term to search for related topics.
All times are GMT -6. The time now is 09:40 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: