1. Horizontally center the text: try text-align:center;height:150px;line-height:30px
Before
After
2. Equally and horizontally distribute the box: try margin-left:auto;margin-right:auto
Before
After
3. Horizontally distribute the box along the top: try display:inline-block;vertical-align:top
Before
After
If you guys find this article helpful, please kindly do the writer a favor — LIKE this article.
Feel free to comment and share your ideas below to learn together!
<<: [Day03] - 第一个 WebComponent 元件
>>: 铁人赛 Day7 -- PHP SQL基本语法(二) -- Session 你到底可以干麻
微服务(Microservices) 微服务是一个低耦合的架构,可以通过以下方式实现重构一个单片应...
前面有提到安装 TailwindCSS 推荐使用 PostCSS,前面练习的都是没有相依 Post...
美国联邦储备局最新公布的议息结果「鹰味浓郁」,但整体符合市场预期。美国的加息步伐在会议之前还未清晰,...
DBA Bootcamp 几个月前,Business Intelligence 部门跑来跟 DBA ...
Hello, 各位 iT邦帮忙 的粉丝们大家好~~~ 本篇是 Re: 从零开始用 Xamarin 技...