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...
<http://www.w3.org/TR/CSS21/syndata.html#vendor-keywords>
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...
<http://rafael.adm.br/css_browser_selector/>

There are also heavier solutions, for example...
<http://conditional-css.com/>
...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...
<http://www.gunlaug.no/contents/styles/agxc-050331.css>
Note that I'm targeting specific browser engines - not specific
browsers, and the outcome in regular visitors' browsers isn't really
important.

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.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
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/

Reply via email to