Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the advantage of collapsing white space?

user-image
Question added by Faten Almajaly
Date Posted: 2015/04/02
Rami Nasrallah
by Rami Nasrallah , Customer Experience Specialist , DEVNET

i use it usually to change from the the font-family view and the spacing between letters, and that's what made for

 

but the white-space property specifies how white-space inside an element is handled (BY W3C)

and you should keep it clear for visual as golden ratio the space between the elements should be1.6 for the item

 

which that mean if the font size10px that mean the line-height should be16PX, but with the white-space some browsers will be more or less so you should clear for the collapsing of the elements.

 

Rehan Farooq
by Rehan Farooq , WEB DEVELOPER/DIGITAL MARKETING EXPERT , Upwork

White spaces are blank sequence of space characters, which is actually treated as a single space character in html. Because the browser collapses multiple space into a single space, you can indent lines of text without worrying about multiple spaces. This enables you to organize the html code into a much more readable format.

More Questions Like This