<div class="header">
<h2>Records</h2>
<div class="filter">
<input type="text">
</div>
<button type="button">Filter</button>
</div>
.header {
display: flex;
justify-content: space-between;
align-items: center;
}
https://jsfiddle.net/code_mouse/dqxu61pw/
I want to move the filter div element to the right. But margin, float styles don't work. What is the solution to move the central element to the right in display: flex ?