How to remove white-space above the text when passing text into div

Forums HTMLHow to remove white-space above the text when passing text into div
Staff asked 2 years ago

I’m passing the data from js file into html file. But is always showing whitespace above the texts. How can i remove that whitespace? I tried remove it by using white-space = pre-line but in not work.

White-space

Answers (1)

Add Answer
Staff answered 2 years ago

Use this CSS

white-space: normal;

I hope this help.

Subscribe

Select Categories