JSFiddle - React, Tailwind, and code Playground
by kangismet
HTML
<div class="box">
<div class="arab">
لَا حَوْلَ وَلَا قُوَّةَ إِلَّا بِاللّٰهِ العَلِيِّ العَظِيْمِ
</div>
</div>
CSS
body {
align-items: center;
background: #9696be;
display: flex;
height:200px;
justify-content: center;
line-height: 1.5;
overflow:hidden;
}
.box {
background-color: #fff;
box-shadow: 2px 2px 10px #246756;
overflow: hidden;
padding: 2em;
text-overflow: ellipsis;
white-space: nowrap;
width: 350px;
}
@font-face{
font-family:'Me Quran';
src:url('https://kangismet.github.io/fonts/me_quran.eot');
src:url('https://kangismet.github.io/fonts/me_quran.eot?#iefix') format('embedded-opentype'),
url('https://kangismet.github.io/fonts/me_quran.ttf') format('truetype');
font-weight:400;
font-weight:normal;
font-display: swap;
}
.arab{
font-size: 26px;
line-height: 48px;
font-family: "Me Quran","Traditional Arabic",Tahoma,sans-serif;
font-weight: normal;
text-align: right;
direction: rtl;
}