First apply the rule to all divs:
#toolbar div { float: left; background-repeat: no-repeat; margin: 2px 12px 2px 12px; }
Then you need to reset the values ββfor a specific case:
#toolbar div.olControlNavigationHistor { float: none; background-repeat: repeat; margin: 0; }
Of course, this assumes that the property values ββthat a particular div would have without applying the first rule are the default values ββ(for example, margin: 0 and float: none .)
EDIT: However, in the future, when everyone supports CSS3, you can also simply rewrite your original rule as #toolbar div:not(.olControlNavigationHistory) and it will work correctly and elegantly.
Marcus whybrow
source share