Ie9 - A Quick Heads Up On Padding
Posted 22 March 2012 - 08:45 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 - 09:06 AM
If only Microsoft programmers had little minds. Consistency is not at all foolish in this case.
Posted 23 March 2012 - 01:05 PM
Posted 26 March 2012 - 02:03 PM
Posted 26 March 2012 - 03:26 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 - 04:08 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users