Ie9 - A Quick Heads Up On Padding
Posted 22 March 2012 - 08:15 PM
We were using a 'ul' to display inline and setting the spacing with 'padding:0 18px;'.
Turns out IE9 was adding an extra pixel to the padding which was enough to wrap the last item. Reducing it to 'padding:0 18px;' made it look right in IE9 - but wrecked it for other browsers, including IE8.
<!--[if IE 9]>
Over wrote the styling here
to fix the problem.
We use this layout a lot. Looks like a lot more work. I haven't checked to see if 'margin' has the same problem - but I wouldn't be surprised.
Posted 23 March 2012 - 08:36 AM
If only Microsoft programmers had little minds. Consistency is not at all foolish in this case.
Posted 23 March 2012 - 12:35 PM
Posted 26 March 2012 - 01:33 PM
Posted 26 March 2012 - 02:56 PM
So reset styles force the browsers to all behave according to one set of expectations?
As each browser comes with it's own default CSS settings a good reset basically zeroes them out.
One word of caution: some defaults may be OS defaults, especially with regards to Windows and forms. These can be removed but not reapplied. Not usually a problem, just something to be aware of when debugging.
Posted 27 March 2012 - 03:38 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users