<!DOCTYPE html> | |
<!-- | |
| The directionality of an element is inherited from its parent element if it | |
| is not explicitly set on the element itself. | |
| https://www.w3.org/TR/html50/dom.html#the-directionality | |
| https://www.w3.org/International/questions/qa-html-dir#basedirection | |
--> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
margin: 0px; | |
font-family: Roboto, Noto Naskh Arabic UI; | |
font-size: 30px; | |
color: #fff; | |
} | |
.containing-block { | |
background-color: #03a9f4; | |
width: 200px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="containing-block"> | |
<div dir="rtl">test<div>32.ما اسمك؟</div> Thanks.</div> | |
<div dir="ltr">test<div>32.ما اسمك؟</div> Thanks.</div> | |
</div> | |
</body> | |
</html> |