Control Block Size with the CSS Box-sizing Property

preview_player
Показать описание
Use box-sizing: border-box to help ensure that a block's width is set regardless of padding or border sizes.
Рекомендации по теме
Комментарии
Автор

Before this box-sizing property emerged, I can still remember how you used extra inner divs for adding a vertical inline divider between two (or more) parent divs positioned side by side, without messing around with their overall width. I think it is still valuable to have more than one way to do the same thing, depending on the circumstances. Anyway, thank you for giving us so many opportunities to always come back to the roots, which is soo important!

Kwisatsoundman
Автор

This was very clear and understandable thank you sir !

mike
Автор

Thanks for the video, straight forward and to the point. Would this property be useful for a web form I am making for a project? Im running into and issue with my submit button is getting cut off from the area of my web form? Been trying to figure this out all day and have had no luck so far.

callmeclangameplay
Автор

thank you, it was so simple, just nice explanation

nichirvanazado
Автор

Thank you randomly find this gem now I understand ...

krishnanm.k
Автор

how can I fit container to the image's size? couldn't find any source about this://

elif
Автор

I didn't understand so complicated

rekan_