Jump to content

Recommended Posts

Posted (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 by shavers313
Posted

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?

  • Like 1
  • 1 month later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...