0

I saw https://tailwindcss.com/docs/grid-column has some classes that set both grid-column-start and grid-column-end to span <number>.

For example:

grid-column: span 3 / span 3;

I can't understand why it should be this, why not just say grid-column-end: span3 instead? Is there any difference?

Temani Afif
  • 245,468
  • 26
  • 309
  • 415
yaquawa
  • 6,690
  • 8
  • 35
  • 48
  • when using the same value, the system will remove one of them so you can consider them the same which is also equal to `grid-column: span 3;` ` – Temani Afif Aug 10 '20 at 10:47
  • 1
    I think talwind is making such syntax to avoid you overriding the start or the end using another class. This will make sure it will span 3 columns – Temani Afif Aug 10 '20 at 10:49

0 Answers0