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: 'Tajawal';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/tajawal/v4/Iura6YBj_oCad4k1nzSBC45I.woff2) format('woff2');
unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
.arab{
font-size: 24px;
line-height: 48px;
font-family: Tajawal,"Traditional Arabic",Tahoma,sans-serif;
font-weight: normal;
text-align: right;
direction: rtl;
}