I was under the impression that if you put a line of code in CSS further down the style sheet it should be recognized as more important, such as:
.border{
border-right:1px solid #fff;
}
.no-border{
border-right:none;
}
So shouldn’t the no-border class over-write the first class? This is not happening on a project and do not understand why?
thanks
As a quick rule of thumb, the last rule is the one that counts.
However, this is not the case in many scenarios. You need to read up on CSS Specificity.