CSS හි reverse row එකක පිහිටුම් flex මූලද්රව්ය
flex-direction ගුණයේ row-reverse අගය
කොටස් පේළියකට සකස් කිරීමට ඉඩ සලසයි, ඒවා දකුණු
අද්දරට තද කරමින්. මෙයින් අනුපිළිවෙල ආපසු හරවනු ලබයි
- පළමු කොටස වඩාත් දකුණු පසින් පිහිටයි:
html<div class="parent">
<div class="child">1</div>
<div class="child">2</div>
<div class="child">3</div>
</div>css.parent {
display: flex;
flex-direction: row-reverse;
width: 300px;
height: 200px;
border: 1px solid red;
}
.child {
width: 50px;
height: 50px;
border: 1px solid green;
}
Результат:
Задание 1
මෙම ආදර්ශයට අනුව පිටුව නැවත කරන්න: