shavers313 Posted January 28, 2018 Report Share Posted January 28, 2018 (edited) Hello Everyone, I have a noob question. I'm trying to understand the width tag. Why even use the tag if we have padding, margin, and borders? It seems I can make any of my tags resize anyway I want with those 3 tags. I definitely appreciate your response. Edited January 28, 2018 by shavers313 Quote Link to comment Share on other sites More sharing options...
administrator Posted January 28, 2018 Report Share Posted January 28, 2018 Do you mean the CSS width property? Check out my CSS course where I get into CSS layout, I go into detail how the horizontal space an element takes is affected by margins, padding and borders. That said, with CSS Grid and flexbox, this becomes a non issue but for older browsers, you still need to understand this. Makes sense? 1 Quote Link to comment Share on other sites More sharing options...
shavers313 Posted January 28, 2018 Author Report Share Posted January 28, 2018 Okay makes sense. Thanks. 1 Quote Link to comment Share on other sites More sharing options...
Zulfikar Posted March 16, 2018 Report Share Posted March 16, 2018 Its full of website structure alignment Quote Link to comment Share on other sites More sharing options...
martinsmith Posted April 5, 2018 Report Share Posted April 5, 2018 The Width Property sets the width of an element..so that the width of element does not include padding, borders/margins..etc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.