Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
display: flex; flex-direction: row; align-items: flex-end;
<!DOCTYPE html> <html> <head> <script> </script> <style> .all { display: flex; flex-direction: row; align-items: flex-end; color: darkblue; border: 1px solid; height: 100; } .f1 { background: red; width: 100px; height: 100px; border: 2px solid; border-radius: 5px; margin: 5px; height: 100; display: flex; flex-direction: row; align-items: flex-end; } .s2 { background: lightgreen; width: 100px; height: 100px; border: 2px solid; border-radius: 5px; margin: 5px; } .t3 { background: yellow; width: 100px; height: 100px; border: 2px solid; border-radius: 5px; margin: 5px; justify-content: center; align-items: center; display: flex } .f4 { background: blue; width: 100px; height: 100px; border: 2px solid; border-radius: 5px; margin: 5px; justify-content: center; align-items: center; display: flex; } </style> </head> <body> <div class="all"> <div class="f1">1</div> <div class="s2">2</div> <div class="t3">3</div> <div class="f4">4</div> </div> </body> </html>
<style> .all { display: flex; align-items: flex-end; color: darkblue; height: 100%; } .f1 { background: red; width: 100px; height: 105px; border: 2px solid; border-radius: 5px; margin: 5px; height: 100px; align-items: flex-end; } .s2 { background: lightgreen; width: 100px; height: 110px; border: 2px solid; border-radius: 5px; margin: 5px; } .t3 { background: yellow; width: 100px; height: 120px; border: 2px solid; border-radius: 5px; margin: 5px; align-items: center; } .f4 { background: blue; width: 100px; height: 140px; border: 2px solid; border-radius: 5px; margin: 5px; align-items: center; } </style> </head> <body> <div class="all"> <div class="f1">1</div> <div class="s2">2</div> <div class="t3">3</div> <div class="f4">4</div> </div> </body> </html>
<style> .all { display: flex; align-items: flex-end; color: darkblue; height: 100%; } .f1 { background: red; width: 100px; height: 100px; border: 2px solid; border-radius: 5px; margin: 5px; height: 100px; align-items: flex-end; } .s2 { background: lightgreen; width: 110px; height: 100px; border: 2px solid; border-radius: 5px; margin: 5px; } .t3 { background: yellow; width: 100px; height: 120px; border: 2px solid; border-radius: 5px; margin: 5px; align-items: center; } .f4 { background: blue; width: 100px; height: 140px; border: 2px solid; border-radius: 5px; margin: 5px; align-items: center; } </style> </head> <body> <div class="all"> <div class="f1">1</div> <div class="s2">2</div> <div class="t3">3</div> <div class="f4">4</div> </div> </body> </html>