Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have reduced the font size to very small here but large interline gaps remained. Additionally, it does not seem to be monospace since length does not increase monotonously as it should in case of font-family: "Courier New",Courier,monospace. In edit mode, everything is fine.

share|improve this question
    
The line spacing is dependent on the line-height, not the font-size (although it is related initially). –  w3d Aug 19 '13 at 17:08
    
Thanks. I have set the line-height to zero for the enclosing <pre> component. It does not change anything. Also, I see no problem in the editor mode where I just select a small font and all inter-line spacing to to zero with font size. I do not change line spacing separately. I ask here because line-height does not help. –  Val Aug 19 '13 at 17:27

1 Answer 1

Ok, the problem was that switching from HTML to WYSIWYG composition mode, blogger does something to the HTML so that font-family: "Courier New",Courier,monospace; font-size: 1px; slipped into <pre> tag where nothing more but font size had effect.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.