[CSS] Change the off-axis Alignment of a Flexed Container with `align-items`
CSS The of with Change container Off axis
2023-09-14 08:59:14 时间
We changed the axis layout with 'justify-content', and the "off axis" layout is controlled by 'align-items'. The most common values are flex-start
, flex-end
, or center
.
body { display: flex; flex-direction: row; } .container { background-color: #ebb871; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; align-items: flex-end; align-items: center }
<body> <div class="container"> <div class="box1 red"></div> <div class="box2 green"></div> <div class="box3 blue"></div> </div> </body>
相关文章
- Django2.0引入css、js、img文件
- HTTP Status 400 - description The request sent by the client was syntactically incorrect.
- HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
- css流程图、步骤图,流程线与环节分别实现,支持单环节、多环节情况。scss生成CSS
- 从问题找原因之CSS浮动清除
- css边距重叠的解决方案
- CSS常用代码
- Reporting Service 服务启动时报错The service did not respond to the start or control request in a timely fashion
- SQL SERVER 2005删除维护作业报错:The DELETE statement conflicted with the REFERENCE constraint "FK_subplan_job_id"
- [CSS] transform-origin: change the way of element's transformations
- The CPU Costing Model: A Few Thoughts Part IV (Map of the Problematique)
- Atitit.css 规范 bem 项目中 CSS 的组织和管理
- 【Codeforces 1083A】The Fair Nut and the Best Path
- HTML+CSS登陆界面实例:Instagram 登录页面(一个拿来就能用的炫酷登录页面)
- 【K3s】第25篇 解决The connection to the server localhost:8080 was refused
- EnvironmentNotWritableError: The current user does not have write permissions to the targe...
- HDU 4836 The Query on the Tree lca || 欧拉序列 || 动态树
- 问题解决:The connection to the server xxxxx:6443 was refused - did you specify the right host or port?
- 编译webrtc报错:ERROR: The installation of the Chrome OS default fonts failed.
- 【2023年4月美赛加赛】Z题:The Future of the Olympics 思路、建模方案、数据来源、相关资料
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot ···
- 【异常】Flink整合ES出错,The implementation of the provided ElasticsearchSinkFunction is not serializable.