News for hackers. Stuff that matters.
Re:Grid Garden – A game for learning CSS grid by SamBam on Wednesday April 05, 2017 @10:57AM (#14042521)
And can someone explain the reasoning behind using slashes? Why change the syntax of a million other css rules that just use spaces?
Re:Grid Garden – A game for learning CSS grid by 33degrees on Wednesday April 05, 2017 @11:20AM (#14042733)
Sometimes there are multiple values within a dimension, for example: grid-template: 50% 50% / 20% 80%;
Re:Grid Garden – A game for learning CSS grid by gsnedders on Wednesday April 05, 2017 @06:03PM (#14046056)
And hence, otherwise, it would be ambiguous. Slashes are almost always used in CSS to disambiguate things that would otherwise be ambiguous.
Re:Grid Garden – A game for learning CSS grid by zerocrates on Wednesday April 05, 2017 @05:17PM (#14045708)
Slashes are hidden all over the place in CSS shorthand properties (for example, you can use a slash to specify both font-size and line-height together in a "font:" declaration).