this post was submitted on 14 Jul 2024
20 points (91.7% liked)

CSS

462 readers
3 users here now

founded 1 year ago
MODERATORS
 

Hi,

No matter what I try


<style>
.FlexColumn {display: flex;flex-flow: column nowrap }
</style>

<div class="FlexColumn">
	<div>X</div>
	<div>X</div>
	<div>X</div>
	<div>X</div>
	<div>X</div>
</div>
<!-- I tried many CSS trick here... -->
<div>
   <span>X</span><br><span>X</span><br><span>X</span><br><span>X</span>
</div>

I always get a vertical gap between the characters !

Any ideas ?

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Thorry84@feddit.nl 21 points 1 month ago (1 children)

line-height is the property you are looking for. Beware fucking with line-height is usually a bad idea, as characters can extend below or above the "line" and will collide.

Also maybe look at divitis, you might be suffering from it.

I love that word divitis