当前位置:网站首页>How to center the positioned text horizontally and vertically
How to center the positioned text horizontally and vertically
2022-07-02 21:48:00 【Become your own light~】
//left: 50%;
//top: 50%;
// Horizontal vertical center
//transform: translate(-50%, -50%);
// These three are the solutions to make it vertically centered after using absolute positioning
div{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 130px;
height: 100px;
z-index: 999;
opacity: 0.5;
}
// Horizontal center
p{
position: absolute;
bottom:10px;
left: 50%;
transform: translate(-50%, 0);
}边栏推荐
- How to prevent your jar from being decompiled?
- #include<>和#include“”的区别
- Gbase8s database type
- China's Micro SD market trend report, technology dynamic innovation and market forecast
- China plastic bottle market trend report, technological innovation and market forecast
- Analysis of enterprise financial statements [1]
- [C language] [sword finger offer article] - replace spaces
- Basic IO interface technology - microcomputer Chapter 7 Notes
- Golang embeds variables in strings
- Browser - clean up the cache of JS in the page
猜你喜欢

#include<>和#include“”的区别

Gee: (II) resampling the image

Gbase8s database type

Etcd Raft 协议

The neo4j skill tree was officially released to help you easily master the neo4j map database

D4:非成对图像去雾,基于密度与深度分解的自增强方法(CVPR 2022)

It is said that this year gold three silver four has become gold one silver two..
![[shutter] statefulwidget component (bottom navigation bar component | bottomnavigationbar component | bottomnavigationbaritem component | tab switching)](/img/a7/0b87fa45ef2edd6fac519b40adbeae.gif)
[shutter] statefulwidget component (bottom navigation bar component | bottomnavigationbar component | bottomnavigationbaritem component | tab switching)

Technical solution of vision and manipulator calibration system

Pip install whl file Error: Error: … Ce n'est pas une roue supportée sur cette plateforme
随机推荐
~90z axis translation
Summary of the first week of summer vacation
2019 Nanchang (relive the classic)
China plastic bottle and container market trend report, technological innovation and market forecast
The source code of the daily book analyzes the design idea of Flink and solves the problems in Flink
发现你看不到的物体!南开&武大&ETH提出用于伪装目标检测SINet,代码已开源!...
在beforeDestroy中销毁localStorage中的值无效
Secondary development of ANSYS APDL: post processing uses command flow to analyze the result file
[shutter] statefulwidget component (floatingactionbutton component | refreshindicator component)
China's crude oil heater market trend report, technological innovation and market forecast
Research Report on market supply and demand and strategy of China's plastic pump industry
Construction and maintenance of business websites [7]
MySQL learning record (3)
Market trend report, technical dynamic innovation and market forecast of China's low gloss instrument
Research Report on market supply and demand and strategy of Chinese garden equipment industry
AES encryption CBC mode pkcs7padding filling Base64 encoding key 32byte iv16byte
如何访问kubernetes API?
Jar package startup failed -mysql modify the default port number / set password free enter
[shutter] statefulwidget component (bottom navigation bar component | bottomnavigationbar component | bottomnavigationbaritem component | tab switching)
Research Report on micro gripper industry - market status analysis and development prospect prediction