<!DOCTYPE html>
<html>
<head>
<title>CSS direction Property</title>
<style>
div {
display: flex;
height: 30px;
margin-bottom: 10px;
align-items: center;
justify-content: center;
border: 1px solid #888;
}
.direction1 {
direction: ltr;
unicode-bidi: bidi-override;
}
.direction2 {
direction: rtl;
unicode-bidi: bidi-override;
}
</style>
</head>
<body>
<div class="direction1">This text left to right direction</div>
<div class="direction2">This text right to left direction</div>
</body>
</html>