how to remove space between spans

Solutions on MaxInterview for how to remove space between spans by the best coders in the world

showing results for - "how to remove space between spans"
Juan Martín
08 Apr 2016
1# It happens because You probably have spaces or enters in html file. 
2# For example try to minimalize your html by transforming this structure:
3<div>
4	<span class="one">One</span>
5	<span class="two">Two</span>
6 	<span class="three">Three</span>
7</div>
8# Into this one:
9<div><span class="one">One</span><span class="two">Two</span><span class="three">Three</span></div>
10
11# Also you can try to add attribute "flex" (which ignores spaces at the beginning and the end of element) in CSS to parent, in current situation it would be div:
12div {
13display: flex;
14}