Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
We must go gradually.
By adding flex to the class, .payment
you've made the block a .payment__col
flex element. This element has a width equal to the width of its content. The total width of these two phrases inside is 192px.
After that, you tell the boxes inside .payment__col
to take up 50% of the width of their parent (which, remember, is 192px wide). Actually, now you have taken 96px to these blocks. And since the phrase SUBTOTAL 123 simply has nowhere to fit in, it goes beyond the boundaries of its block and overlaps with another phrase.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question