4 ms·
I have. I once had an interviewer ask me to write CSS code that generated an American flag. I used the nth-child selector to render 13 alternating red and whi
by innocentoldguy 11y ago
I have. I once had an interviewer ask me to write CSS code that generated an American flag. I used the nth-child selector to render 13 alternating red and white stripes. The guy asked me why I did that instead of making the background white and painting red stripes over the top of it. I didn't get the job and the reason the recruiter told me I was rejected was because my CSS code was wrong.