Before you use the CSS reference, learn the class names used in the layout structure: your CSS is based on them, and each section of the store (header, body, shopping cart and so on) has its own classes.The picture above shows the classes used by each section. There are six top-level classes:1.
master-wrapper-page: the outermost class of the store. Any change to it affects every class inside it, such as master-column-wrapper and footer.
2.
header: the header section (not the <header> tag), including the logo, menus and so on.
1.
header-upper: the top strip of the store: my account, language and currency selectors, and so on.
2.
header-lower: the lower part of the header: the logo, the cart icon, the search box and so on.
3.
header-menu: the store's header menu.
4.
master-wrapper-content: the content of every page: the home page, the sign-in page, the blog and so on.
5.
master-column-wrapper: the same content area; master-wrapper-content is its parent.
6.
footer: the footer section: copyright, menus, the newsletter box and so on.
Write selectors starting from the parent classes. Every class sits inside one of these six, so a selector without its parents often won't work, because the parents' styles take precedence. The safest way is to include the parent class and add !important to force the style.Some classes have many parents. You don't need all of them: add the last two parent classes, and if that doesn't work, add a third.
Find a class's parents in the browser's developer tools (Chrome or Firefox), and try your CSS there before adding it to the CSS editor.
This reference doesn't cover every class in every store: it is the base (parent) CSS reference. Every theme uses it and also has its own classes.
You can use this reference with any theme, because every theme is built on the base CSS.