8 ms·
It looks okay on internet explorer with compatibility view on.
by ndkwj 5y ago
It looks okay on internet explorer with compatibility view on.
- gpvos 5y agoBut, as has been asked many times, WHY?
- deleted 5y ago[deleted]
- tdeck 5y agoIt's because some browsers close the currently open heading tag when they encounter a new one (since these tags can't be nested) and others do not. Since the text size is applied as an H3 style and is relative to the parent, the nesting of these tags (or not) determines whether the effect of the style is cumulative.
- gpvos 5y agoIf I understand the other arguments correctly, IE also saw them as nested, but defined the text size of h[1-6] elements as absolute, not relative.
- goto11 5y agoBecause in old IE, <h3> was defined with an absolute font size in the built-in style sheet, in newer browsers it is defined as a relative size. Since we have nested <h3>'s they get increasingly bigger in newer browsers, but in old IE they would all have the same size.