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:'LPMQ';
src:url('https://kangismet.github.io/fonts/lpmq.eot');
src:url('https://kangismet.github.io/fonts/lpmq.eot?#iefix') format('embedded-opentype'),
url('https://kangismet.github.io/fonts/lpmq.ttf') format('truetype');
font-weight:400;
font-weight:normal;
font-display: swap;
}
.arab{
font-size: 26px;
line-height: 48px;
font-family: LPMQ,"Traditional Arabic",Tahoma,sans-serif;
font-weight: normal;
text-align: right;
direction: rtl;
}