responsive-made-easy
responsive-made-easy copied to clipboard
Question about containers
Thank you for your excellent YouTube videos. I've learned a ton from you. Something I've seen many times elsewhere (for Ex. in Bootstrap examples) is the creation of a div inside of a semantic element like a section as you do here. https://github.com/kevin-powell/responsive-made-easy/blob/master/index.html#L26 My question is why did you choose to create a section > div.container instead of just section.container. I'm not trying to say you did it wrong I just want to understand your thought process as I've seen this pattern often.
If I did a section.container, that section wouldn't be able to have a full-width background on it. Now, if you had several sections (or other things) that you know all don't have a background on them, you could easily have one .container, and then inside of that have multiple sections.
The way I did it is a common pattern though, because it's versatile. Need a background, put it on there. Don't need one, no problem, it still works.
Thank you. Exactly what I needed to know.
On Wed, Aug 16, 2023 at 8:25 AM Kevin Powell @.***> wrote:
If I did a section.container, that section wouldn't be able to have a full-width background on it. Now, if you had several sections (or other things) that you know all don't have a background on them, you could easily have one .container, and then inside of that have multiple sections.
The way I did it is a common pattern though, because it's versatile. Need a background, put it on there. Don't need one, no problem, it still works.
— Reply to this email directly, view it on GitHub https://github.com/kevin-powell/responsive-made-easy/issues/2#issuecomment-1680508928, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALIAE7ZN7RY5JVEL7LQ7ADXVS323ANCNFSM6AAAAAA3RWKQZM . You are receiving this because you authored the thread.Message ID: @.***>