this post was submitted on 14 Jul 2024
19 points (91.3% liked)

CSS

462 readers
4 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
[–] [email protected] -2 points 1 month ago

Sorry if this is a silly answer as i don't kbow css well, but have you removed the inherent styling that comes with the browser. I think you need to have a

* {magin: 0; padding: 0}