how to remove extra space at top in html code example Example: remove extra space in code html pre, code { white-space: pre-line; }