I am facing an issue when using tags right after eachother(ex: span
, 'a' and 'p'). characters merge with each other, although they are in seperate html tags!
How can I prevent that from happing?
<a href="" class="underline mx-1">حریم شخصی</a>
<a href="">استفاده</a>
<span>حریم</span>
<span>استفاده</span>
<span>حریم</span>
Codepen : https://codepen.io/blackcrowxyz/pen/jOZOZoR
What I want:(استفاده حریم is right)
What I get:(استفادهحریم is wrong)
sample output:
Is this the way you want?
Using flex
<script src="https://cdn.tailwindcss.com"></script> <div class="p-4 w-64 flex justify-between"> <span><a href="#"> قوانین و شرایط استفاده </a></span> <span><a href="#">حریم شخصی</a> </span> </div>
Using margin
<script src="https://cdn.tailwindcss.com"></script> <div class="p-4"> <span><a href="#" class="ml-5"> قوانین و شرایط استفاده </a></span> <span><a href="#">حریم شخصی</a> </span> </div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.