Home>Support>error ” don’t use adjoing classes” and “Don’t use IDs in selectors”

error ” don’t use adjoing classes” and “Don’t use IDs in selectors”

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi
1st of all – after a bit of a learning curve I’ve worked out how to use the CCS Editor – and begining to appreciate it.
Thanks

Now to my problem
I have a page that uses page builder embedded with
SiteOrigin Editor, Site Origin Image and Huge IT Video gallery on the “responsive theme” wordpress 4.4.2

I’m trying to set the background color of the page (the areas between the various widgets)
After playing around with the visual editor I got the CSS code below

Although this works, in the text box of the Custom CSS I get little yellow triangles, hovering over them gives me
“don’t use adjoing classes” and “Don’t use IDs in selectors”

What does this mean ?
Also, did I target the correct things – to change the background color do I really need to target all of the three things ?
Thanks
Yonatan

.pg-228-0 {
background-color: #b3ccff;
}

.grid.col-940 {
background-color: #b3ccff;
}

#wrapper.clearfix {
background-color: #b3ccff;
border-color: #b3ccff;
}

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Yonlehman,

    Welcome to the magical world of CSS! Don’t let the triangles bring you down – you’re doing fine!

    The yellow triangles are warnings. They pretty much mean; while what you’re doing works, it’s not optimal. I recommend giving this page a read for a bunch of tips on this sort of stuff. Just be aware that, again, they’re warnings, not absolutes. Anyway, here’s the pages for IDs as selectors and
    adjoining classes.

    Good luck!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More