| <!DOCTYPE html> |
| <!-- |
| | When the "text-overflow" property is set to "ellipsis" an ellipsis |
| | character is rendered to represent clipped inline content. Shaping |
| | characters are still shaped as if the text were not clipped, and |
| | grapheme clusters must together stay as one unit. |
| | https://www.w3.org/TR/css3-ui/#propdef-text-overflow |
| | https://www.w3.org/TR/css3-text/#overflow-wrap |
| --> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <style> |
| body { |
| margin: 0px; |
| font-family: Roboto, Noto Naskh Arabic UI; |
| font-size: 30px; |
| } |
| div { |
| white-space: nowrap; |
| width: 325px; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| border: 1px solid #000000; |
| } |
| </style> |
| </head> |
| <body> |
| <div dir="ltr">سرين عبد النور - عمرى معاك نانسي عجرم - مستنياك</div> |
| <div dir="ltr"><span>سرين عبد النور - عمرى معاك نانسي عجرم - مستنياك</span></div> |
| <div dir="rtl">سرين عبد النور - عمرى معاك نانسي عجرم - مستنياك</div> |
| <div dir="rtl"><span>سرين عبد النور - عمرى معاك نانسي عجرم - مستنياك</span></div> |
| </body> |
| </html> |