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: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/almarai/v5/tsstApxBaigK_hnnQ1iFow.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.arab{
font-size: 24px;
line-height: 48px;
font-family: Almarai,"Traditional Arabic",Tahoma,sans-serif;
font-weight: normal;
text-align: right;
direction: rtl;
}