CSS: Explicitly declaring position, padding, margin, and overflow for every item?

Posted by DavidR on Stack Overflow See other posts from Stack Overflow or by DavidR
Published on 2010-05-27T15:38:32Z Indexed on 2010/05/27 15:41 UTC
Read the original article Hit count: 214

Filed under:
|

I've been working for a guy whose been teaching me css. I made a website based on his designs which I'm pretty proud of, but he got back to me saying that I need to explicitly declare the padding, margin, position, and overflow (specifically every item should have "overflow:hidden") on every item. Is there any basis to this at all? Is there anything I can use to refute this? I thought that declaring something like div,span,h1,[...] {padding:0;margin:0;postion:static;overflow:hidden} would take care of everything due to the cascade.

© Stack Overflow or respective owner

Related posts about css

Related posts about habits