I need some explanations, if anyone can figure this out.
The logic of my CSS code goes like this:
I have a main tag, that is set to 100% of the page.
Then, I have a wrapper, that is set 50% of it.
Then, an input (’#champion-input) is set to 100% of the wrapper, which is exactly what you see.
But, here is where stuff goes wrong:
#match-list is inside a form which is inside the wrapper.
As you can see, setting that to 100%, for some reason, is not correctly changing it to the wrapper’s width. (The blue bar goes off)
Why is that?
The fix to it would be changing '#match-list’s width to 50%, but I do not understand why.
Thank you in advance!