![]() |
Another box model hack alternative
The box model hack is used to fix a rendering problem in pre-IE 6 browsers on PC, where by the border and padding are included in the width of an element, as opposed to added on. A number of CSS-based solutions have been put forward to remedy this, so here's another one which we really like:
padding: 2em; border: 1em solid green; width: 20em; width/**/:/**/ 14em; |
All times are GMT -7. The time now is 12:24 AM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.