« Apple's iPhone to support third-party Web 2.0 applications... | Main | iPhone Development Camp Sponsored by Adobe »

Comments

nerpi

This is a perfect example of how broken standard css is. Of course, these days I only do positioning via standard css using xhtml transitional, but the fact remains that it requires a lot of markup in the html to get any flexibility to accomodate future design changes.

Steve

I tended to think of it as defining 'width' and 'margin' on the outer block,
and 'border' and 'padding' on the inner block, but to "Never define a boxes' width AND padding in the same element" is much more concise. Thanks!

Steve

Wait! The broken box model includes the border as well as the padding, so the rule is:

Never define width with border & padding,

Or:

Outer block: margin & width
Inner block: border & padding

So you didn't really help me after all!

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment