CSS

CSS Specificity

CSS Specificity determines what CSS rule should be applied in the browser. It is common belief that rules have higher priority if they are declared further down in the CSS file. This is not always the case. Consider the following code below.
:et’s assume that the following rule within a CSS file is in place.

Magento Adding Custom CSS and JS

It is common practice when creating a custom theme in Magento to add an additional stylesheet or JavaScript file that contains custom functionality.
Whilst it is not common practice to edit Magento’s existing layout files to achieve this, you can add layout updates to the theme’s local.xml layout file. This file might not exist …