• Hi

    I copied the simple block of CSS from a CSS training site (so I know it the correct coding:

    :root{--main-bg-color:coral;}
    
    .page-id-29 #page > div {
      background-color: var(--main-bg-color);
      padding: 5px;  
    }

    (I have adapted it for my site so it works)

    As I say it works, however I am still getting an RBRACE error on line 1 col 7:

    --main-bg-color: coral;

    If make it a single dash ( – ) the error goes but the script does not run.

    Anyone know how to write this so that there is no error and the script works?

    Thanks,

    Paul

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Rbrace errors in custom CSS’ is closed to new replies.