Court Kizer wrote:
> I know that putting -webkit in front of css will make it safari only.
> Could I do the same thing -moz-margin-top, or is does mozilla only
> allow this for CSS 3?
Such prefixes are reserved for vendor specific extensions to CSS, and
the extension names and effects are not necessarily identical to those
found in standardized CSS...
Thus, only occasionally useful for hacking browsers.
> I'm looking for the most pain-free way without a massive browser
> check to have several selective items based on the browser.
For non-essential additions/modifications based on browser etc., a
simple script is probably the easiest solution...
There are also heavier solutions, for example...
....that I haven't bothered to test.
Solely for testing-purposes I apply "watermarks" in the page-backgrounds
in the web design section on my own site, based on vendor specific rules
and prefixes and degree of CSS selector support, bugs and other
peculiarities in various browsers...
Note that I'm targeting specific browser engines - not specific
browsers, and the outcome in regular visitors' browsers isn't really
One can get away with such hacking if it doesn't really matter if it
fails occasionally. None of the above methods can be recommended for
adding/modifying essential content on a site.
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/