A concise box-model workaround (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


rdouglass -> A concise box-model workaround (8/16/2006 10:16:48)

I thought this was one of the most concise and clear explination with solution for the CSS box 'width' issues between browsers I've ever seen:

http://www.htmlgoodies.com/beyond/css/article.php/3620531




jaybee -> RE: A concise box-model workaround (8/16/2006 10:23:45)

Yes it is one of the better ones.

I try to avoid the problem altogether

quote:

The box model problem only occurs when we have padding and borders, with a width.


So don't. See if you can use margin instead or don't specify a width. There are ways round it if you're willing to tweak your design a bit.

Of course, with IE7 it won't be a problem any more.......
will it. ? !




rdouglass -> RE: A concise box-model workaround (8/16/2006 12:02:52)

quote:

don't specify a width


In an ideal world, I agree whole-heartedly. But many of my customers don't have any concept of an 'ideal world'. [:D] I always seem to have to use widths *somewhere*; if nothing else for a reference pint for other boxes. [X(]

This fix tho does seem to be quick and very broad in it's effectiveness.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125