CSS: line-height renders differently when applying two CSS styles inline Vs internal

sageone

New Member
I have the following problem: I developped a tool that extracts styles from the HTML tags and put them into the header (i.e. it makes inline CSS internal).It seems however that line-height renders differently when having more than one CSS class:This is the sample before tool-extraction: calling 1 internal CSS class + specifying 1 inline CSS style\[code\]\[code\]<html><head><style><!-- p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; font-size:11.0pt; font-family:"Calibri","sans-serif";}--></style></head><body><p class=MsoNormal style='text-align:justify;line-height:normal'><span style='font-size:20.0pt'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span></p></body></html>\[/code\]\[/code\]And this is the sample after tool-extraction: calling 2 internal CSS classes -> line-height renders differently!\[code\]\[code\]<html><head><style><!-- p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0cm; margin-right:0cm; margin-bottom:10.0pt; margin-left:0cm; line-height:115%; font-size:11.0pt; font-family:"Calibri","sans-serif";}.inlineClass009 {text-align:justify;line-height:normal}--></style></head><body><p class="MsoNormal inlineClass009"><span style='font-size:20.0pt'>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span></p></body></html>\[/code\]\[/code\]
 
Back
Top