The direction of the body is rtl. I want the button-div div to stick to the left side of it's parent div, but It doesn't. Why is that?
#header-row {
display: flex;
margin: 0px 100px 0px 100px;
}
#button-div {
float: left;
}
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="header.css">
</head>
<body dir="rtl">
<div id="header-row">
<div id="button-div">
<div>
<button id="login-button">ورود</button>
<button id="register-button">ثبت نام</button>
</div>
<button id="market-button">ورود به فروشگاه</button>
</div>
</div>
</body>