471,089 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Box Model Hack

I am redesigning my pages and using this rule:

body{ padding: 0; width: 88%; margin:0% 6%;border:0;}

It looks fine in IE6. But 10% of my site's viewers use IE 5-5.5

Do I have to rewrite that rule so that it will work right in IE 5-5.5 as
well as IE6?

Thanks, CMA
Jul 20 '05 #1
2 1633
In article <U_*****************@twister.nyroc.rr.com>, cm***@yahoo.com
says...
I am redesigning my pages and using this rule:

body{ padding: 0; width: 88%; margin:0% 6%;border:0;}

It looks fine in IE6. But 10% of my site's viewers use IE 5-5.5

Do I have to rewrite that rule so that it will work right in IE 5-5.5 as
well as IE6?

http://www.google.com/search?q=box+model+hack

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #2
Thanks for the reference. It appears that if one sets a "width" and has no
padding or borders, but have margin, then the Box Model does not break down
and no hack is necessary.
Cheers, CMA

"Lauri Raittila" <la***@raittila.cjb.net> wrote in message
news:MP************************@news.individual.ne t...
In article <U_*****************@twister.nyroc.rr.com>, cm***@yahoo.com
says...
I am redesigning my pages and using this rule:

body{ padding: 0; width: 88%; margin:0% 6%;border:0;}

It looks fine in IE6. But 10% of my site's viewers use IE 5-5.5

Do I have to rewrite that rule so that it will work right in IE 5-5.5 as
well as IE6?

http://www.google.com/search?q=box+model+hack

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Chuck Spears | last post: by
2 posts views Thread by william c | last post: by
6 posts views Thread by B McDonald | last post: by
4 posts views Thread by Vigil | last post: by
reply views Thread by Thomas Mlynarczyk | last post: by
3 posts views Thread by yaduraj | last post: by
4 posts views Thread by rfox | last post: by
5 posts views Thread by Nmx | last post: by
1 post views Thread by kloro | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.