I created an account on “CSS Battles”, And I was curious about the answer of the highest score in the first battle," Battle #1 - Pilot Battle #1 - Simply Square" The code was like that :
Which creates a square that looks like this :
So what does the code mean? and how to learn advanced things like that?
And what search keywords should I use to look these things out in google ?
It is the same as:
box-shadow: 0 0 0 2in #b5e0ba, 0 0 0 5in #5d3a3a;
in unit is inches.
The use of
+ is to avoid having to use a string.
<img style="box-shadow:0 0 0 2in #b5e0ba,0 0 0 5in #5d3a3a">
You can search for css golf code to read more.
Just to be clear, golf code can be interesting but it isn’t very useful in the real world.
@lasjorg That was very detailed and useful! Thank you so much
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.