Buenas tardes alguien me podra ayudar, estoy tratando de crear cuadricula dentro de otra cuadricula Css grid y no lo puedo pasar

Tell us what’s happening:
Describe your issue in detail here.

   **Your code so far**

 .container {
   font-size: 1.5em;
   min-height: 300px;
   width: 100%;
   background: LightGray;
   display: grid;
   grid-template-columns: auto 1fr;
   grid-template-rows: auto 1fr auto;
   grid-gap: 10px;
     "advert header"
     "advert content"
     "advert footer";
 .item1 {
   background: LightSkyBlue;
   grid-area: header;

 .item2 {
   background: LightSalmon;
   grid-area: advert;

 .item3 {
   background: PaleTurquoise;
   grid-area: content;
   /* Only change code below this line*/

grid-template-columns:auto 1fr­­­­­­­­; 

/* Only change code above this line */

 .item4 {
   background: lightpink;
   grid-area: footer;

 .itemOne {
   background: PaleGreen;

 .itemTwo {
   background: BlanchedAlmond;


<div class="container">
 <div class="item1">header</div>
 <div class="item2">advert</div>
 <div class="item3">
   <div class="itemOne">paragraph1</div>
   <div class="itemTwo">paragraph2</div>
 <div class="item4">footer</div>
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Challenge: Create Grids within Grids

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

[quote=“carolinaeugeniapardi, post:1, topic:495521”]


[/Good afternoon, can someone help me, I’m trying to create a grid within another Css grid and I can’t pass it]

Hello @carolinaeugeniapardi,

I did test with your code and it is really strange, you have the good syntax, and each time I put your code on comment, write again the line, it works. If I comment my new line and uncomment yours it works too. Maybe try to reset the code, and type properly the code. What is sure is that it is good. When I type again it works.

Thank you very much, ­­­­i`ll try to reset the code and see if it works.

Ok, try to not copy/paste, type the two lines with the keyboard. On my side it works :wink:

I just tried and it worked, thank you very much.

You’re welcome @carolinaeugeniapardi :wink:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.