I was trying to figure out all the edge cases of linear-gradient() and repeating-linear-gradient() and trying to refresh my knowledge of how much i’ve learned.
I wanted to make something like a code -> output like MDN.
the output is in the wrong place because of margin (probably), to fix it i tried to use float: left; but that just changed everything dont know why.
Q 1 : Please explain the effect of using float: left (check comment in the css file)
Q 2: How do i get output right to the code?
Q1: float-left means to makes block element float to left one by one . i can’t explain very clearly . sorry . but the point it’s Inline and block level elements .