Common css mistakes - no more
onderhond.com
Common css mistakes - no more
1–7 of 7 posts
Re: Common css mistakes - no more
#2Re: Common css mistakes - no more
#3I think your site falls victim to my point above due to (1) Abuse of rounded corners (it's OK to be square, man) (2) Abuse of drop-shadows (not every element needs a drop-shadow!)
Re: Common css mistakes - no more
#4So #2 is questionable.
Re: Common css mistakes - no more
#5Re: Common css mistakes - no more
#6I'm not understanding the padding/margin argument. They are separate things.
When he writes "one single space", he means what we all think of as padding in one direction or margin in one direction. I think all he's really saying is "don't create extra padding by adding margin" and "don't create extra margin by adding padding."
The argument is valid: it's just kind of obvious and poorly worded.
Re: Common css mistakes - no more
#7I'm not understanding the padding/margin argument. They are separate things.
I had the same initial reaction. On further thought, I think the author understands the difference. The problem is that he's not a very good writer. When he writes "one single space", he means what we all think of as padding in one direction or margin in one direction. I think all he's really saying is "don't create extra padding by adding margin" and "don't create extra margin by adding padding." The argument is val…