Skip to content

Instantly share code, notes, and snippets.

@teffcode
Last active May 5, 2023 05:37
Show Gist options
  • Save teffcode/77e035f15e0a87e42b008ebc17b720b6 to your computer and use it in GitHub Desktop.
Save teffcode/77e035f15e0a87e42b008ebc17b720b6 to your computer and use it in GitHub Desktop.

馃憢馃徏 Welcome 馃憢馃徏

Quiz banner

Instagram | Twitter | LinkedIn


Choose your language 馃憛



English version 馃殌


Considering the following code (HTML and CSS), What would you see in the browser: A or B ?



Click here to see the correct answer and explanation 馃憖
Correct Answer Explanation
A Look at the image below for more clarify 馃槂


Explicaci贸n basada en 馃憠馃徏 40 CSS Grid Diagrams For Visual Learners Recommended reading 馃憠馃徏 Negative Grid Lines

Code:

HTML:

<div class="grid">
  <div class="item"></div>
</div>

CSS:

.grid {
  background: papayawhip;
  width: 300px;
  height: 300px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.item {
  background: hotpink;
  grid-column: 3 / 5;
  grid-row: -2 / -4;
}


Spanish version 馃殌


Considerando el siguiente c贸digo (HTML y CSS), 驴Qu茅 ver铆as en el navegador: A o B?



Haz click aqu铆 para ver la respuesta correcta y su explicaci贸n 馃憖
Respuesta correcta Explicaci贸n
A Mira la imagen de abajo para m谩s claridad 馃槂


Explicaci贸n basada en 馃憠馃徏 40 CSS Grid Diagrams For Visual Learners Lectura recomendada 馃憠馃徏 Negative Grid Lines

C贸digo completo:

HTML:

<div class="grid">
  <div class="item"></div>
</div>

CSS:

.grid {
  background: papayawhip;
  width: 300px;
  height: 300px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.item {
  background: hotpink;
  grid-column: 3 / 5;
  grid-row: -2 / -4;
}


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment