-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boxsizing.htc causes page elements in IE7 to shrink #38
Comments
I tried using boxsizing.htc for only the necessary elements (rather than global *) as advised my Schepp ( #12 ) but still experience shrinking in IE7 when I include this class (some .page's also include padding): .page { As an alternative, I am getting good results for my float-based layouts using a simple jQuery script to adjust the box widths for the necessary elements: /* Set border-box widths for IE6 and 7 */ $(function() {
}); |
I was getting this problem when I was adding/removing a class on focus/blur, that was triggering the If the elements you will use the behaviour on will only ever be static (i.e. no bound events that could cause border/padding/content width changes) then you can somewhat safely remove the following line to remove the event binding:
Very limited fix of course because the width won't be updated to match elements changes, but it suited my needs. |
I have been experiencing a problem with page elements in IE7 shrinking inward from left and right when I use boxsizing.htc for border-box sizing of my float-based layouts.
Here is a similar report: Strange interaction with box-sizing-polyfill when window resized
(Sorry about all the closing and reopening of my issue. I thought the polyfill was working and then it wasn't.)
The text was updated successfully, but these errors were encountered: