Title: &#8220;Expected LBRACE&#8221; Error
Last modified: July 17, 2019

---

# “Expected LBRACE” Error

 *  [philippf](https://wordpress.org/support/users/philippf/)
 * (@philippf)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/expected-lbrace-error/)
 * Hi, I want to insert this CSS code to change the color. When inserting, however,
   the error message “Expected LBRACE at line 81, col 3.” appears. Can anybody help
   me further?
 * [@media](https://wordpress.org/support/users/media/) (max-width: 1100px)
    .navbar-
   custom .navbar-nav { /* background-color: #21202e; */ float: none!important; 
   margin: 0px; }
 * many Greetings
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexpected-lbrace-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [6 years, 11 months ago](https://wordpress.org/support/topic/expected-lbrace-error/#post-11739237)
 * That’s not valid syntax for the media query. I assume you’ve taken this from 
   your browser? The browser doesn’t always present things in a syntactically correct
   way. Instead of this bit:
 *     ```
       @media (max-width: 1100px)
       ```
   
 * Write this (with a left brace on the end):
 *     ```
       @media (max-width: 1100px) {
       ```
   
 * And then you have to put a right brace at the end of your code:
 *     ```
       margin: 0px;
       }
       }
       ```
   
 * The entire solution should be this instead:
 *     ```
       @media (max-width: 1100px) {
         .navbar-custom .navbar-nav {
           /* background-color: #21202e; */
           float: none!important;
           margin: 0px;
         }
       }
       ```
   
 *  Thread Starter [philippf](https://wordpress.org/support/users/philippf/)
 * (@philippf)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/expected-lbrace-error/#post-11739258)
 * Yes, I have that from my browser, Chrome. I wanted to replace the color of the
   NAvbar. Unfortunately, your code does not work either. I’m starting to despair
 *  Thread Starter [philippf](https://wordpress.org/support/users/philippf/)
 * (@philippf)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/expected-lbrace-error/#post-11739263)
 * Just finished. Have found a solution. Many thanks for your help
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [6 years, 11 months ago](https://wordpress.org/support/topic/expected-lbrace-error/#post-11739274)
 * What is the solution? If you’re saying there’s a syntax error and the code that
   I suggested didn’t work, I would very much like to know what the solution is.

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

The topic ‘“Expected LBRACE” Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/expected-lbrace-error/#post-11739274)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
