You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nzakas edited this page Oct 25, 2011
·
2 revisions
Early on in web development, including the same CSS property twice was certainly an error, especially if there were two different values. For example:
.mybox {
width:100px;
width:120px;
}
Anyone looking at this code would think that this is clearly an error. Recently, however, including duplicate properties is used as a way to deal with varying levels of browser support for CSS properties. For example, some browsers support RGBA color while others do not, so it's quite common to see patterns such as: