Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
fuckwit12176yDo you mean that the border box measures
Border and padding from the edge into both directions?
I don't know much css but for me it makes sense that the content box gives you the desired width/height for content. And the border box gives you a border with these dimensions. -
Well, if you want to call your self a frontend webdev, then I think you'd have to know CSS pretty well.
-
abkcode3016y@fuckwit content-box gives you desired width+padding+border which actually makes the element larger.
-
abkcode3016y@ScriptCoded i am not a css expert. but i try to learn how things work while solving any css issue.
-
h4xx3r16966yI always setup:
*{box-sizing:border-box}
I don't like to take border and padding into the equation all the time <_< -
I don't see any confusion here. content-box is the default value. You get the exact width and height you put there, everything else wrapped outside. border-box renders the padding and border inside.
If you don't know, you don't have to bother it, everything just works.
For beginners, the more stuff you put in, the less chance it works. Keep it simple! -
fives10426yAny frontend dev needs to know how to position and size anything with all 'display' and 'position' attributes. Get to understand webkit, key frames, pseudo classes and transitions, then scss and compiling
Related Rants
CSS is frustrating because nobody actually times time to learn it.
rant
wk140
css