Yes, I described it poorly, I’ll try again, but it’ll most likely still be bad!
A php script is used to add a cart to the page. This script using various classes. I’m adding this script to the page twice, although displaying different elements in each.
In HTML stack A the class.btn-group .btn the default background colour of white is applied. This is fine. But the script in HTML stack B also uses the same class, but in this instance I want the background to be black.
Using the css above I change change the default background to black, but if I add this css to the page, it changes the backgrounds in both HTML stacks, whereas I only want to change it in HTML stack B.
I thought I could just add the custom class cart-block to HTML stack 2 and add that class to the beginning (or end) of the default class: .btn-group .btn, so making it something like .cart-block.btn-group .btn, but that ain’t working.