SyntaxError in CSS Grid: Create Your First CSS Grid

Tell us what’s happening:
Hi there Heroes,

I’m having problem when running test of CSS Grid: Create Your First CSS Grid.

With the running test result:

// running tests
SyntaxError: invalid regular expression flag s

Your code so far


<style>
.d1{background:LightSkyBlue;}
.d2{background:LightSalmon;}
.d3{background:PaleTurquoise;}
.d4{background:LightPink;}
.d5{background:PaleGreen;}

.container {
  font-size: 40px;
  width: 100%;
  background: LightGray;
  /* Only change code below this line */
  display: grid;
  
  /* Only change code above this line */
}
</style>

<div class="container">
<div class="d1">1</div>
<div class="d2">2</div>
<div class="d3">3</div>
<div class="d4">4</div>
<div class="d5">5</div>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0.

Challenge: Create Your First CSS Grid

Link to the challenge:

the error is not related to your code

can you try updating your browser to latest stable version?

1 Like

i see, thank u
its kinda stress me