The reason I use this technique rather that the box model hack, is because we cannot guarantee that the box model hack will work in future browsers, I know its probably not going to be a big deal to fix it, knocking out a couple of lines of css shouldn't take long, but I prefer not to have clients moaning at me because their sites have suddenly stopped working. This technique is far more future proof, and allthough its not semantically perfect, i prefer it to having unnecessary voice selectors in your style sheet.


On 11/15/05, Thierry Koblentz <[EMAIL PROTECTED]> wrote:
Charlie Bartlett wrote:
> Because it is a hack, I tend to use the same technique as Joesph, I
> think its best to avoid hacks wherever possible.

But using an extra DIV like this is also a hack. And not better IMO, since
it mixes structure and presentation.
My approach is to *not* mix dimensions with padding/border declarations on
the same axis.
I don't think padding is an issue since it can be "moved down" to the inner
elements.
Border is more tricky, but it is always possible to keep the box model in
mind and plan ahead when it comes to visual design...

Thierry | www.TJKDesign.com

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************


Reply via email to