Hello, I am brand new to Webflow, I come from a HTML/CSS by hand in a code editor background and I am wondering how is specificity handled in Webflow? I’m not even sure what to call what I’m asking…
Example:
.shifted-right {
margin-left: 30px;
}
I’m used to being able to declare simple styles like above and then if I want to shift any element – I just add shifted-right to the html tag for any element. A heading here, an image here, a div there.
From what I’m seeing with combo classes in Webflow I would define a class for each element and then create another new combo class of shifted-right per element. I’m trying to be more DRY than that for obvious reasons.
Is there a way to do what I’m asking in Webflow? Without writing a new combo class for every element I need to shift?
UPDATE: I just figured out how to create a global combo class. Is this best practice? I also see where I could use an html embed to add my styles and see them live in the WF designer, but I’m a freebie account so no embeds for me. ![]()
Here is my site Read-Only: LINK
(how to share your site Read-Only link)