csstagslongest-prefix

Can you use the browser specific prefix in front of all css tags?


Can you use the browser specific prefix in front of all standard tags?

e.g.

#div{

 padding:20px;
-moz-padding-bottom:10px;

} 

is the above valid CSS for ensuring Firefox has a different bottom padding to all other browsers?


Solution

  • No, it's not a prefix for targetting a browser, it's a prefix that is used for specific non-standard properties like -moz-opacity or -moz-padding-start. It's not available for the standard properties.