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