简体   繁体   中英

Expected RBRACE error in WordPress style.css

I am using WordPress 5.3.1 and I am getting the issue in css while creating a grid.

Expected RBRACE

Screenshot

在此处输入图片说明

This is the code I am using. It's working on local server but getting the issue on WordPress style.css

.cp-seeWrapper ul {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 10px;
    }

Would you help me out with a solution?

Here is the code. Hope it will help you. If any changes please let me know.Use grid: 50% 50% / repeat(2, 50%); . It solves your problem.

https://jsfiddle.net/bny5eq03/2/

 .exclusive-content ul{ display: grid; grid: 50% 50% / repeat(2, 50%); justify-content: center; grid-gap: 10px; }
 <div class="exclusive-content"> <ul> <li>Hello</li> <li>Hello</li> </ul> </div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM