当前位置:网站首页>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);
}边栏推荐
- D4: unpaired image defogging, self enhancement method based on density and depth decomposition (CVPR 2022)
- [shutter] statefulwidget component (pageview component)
- PIP audit: a powerful security vulnerability scanning tool
- ~91 rotation
- Error in PIP installation WHL file: error: is not a supported wheel on this platform
- Cardinality sorting (detailed illustration)
- D4:非成对图像去雾,基于密度与深度分解的自增强方法(CVPR 2022)
- Research Report on right-hand front door industry - market status analysis and development prospect forecast
- Analysis of neural network
- The neo4j skill tree was officially released to help you easily master the neo4j map database
猜你喜欢

MySQL learning record (6)

PIP version update timeout - download using domestic image
![[shutter] shutter page Jump (route | navigator | page close)](/img/af/3fb2ca18bcec23a5c0c6897570fb53.gif)
[shutter] shutter page Jump (route | navigator | page close)

tinymce可视化编辑器增加百度地图插件

MySQL learning record (3)

D4: unpaired image defogging, self enhancement method based on density and depth decomposition (CVPR 2022)

MySQL learning record (5)

LandingSite eBand B1冒烟测试用例

treevalue——Master Nested Data Like Tensor

Basic IO interface technology - microcomputer Chapter 7 Notes
随机推荐
Pyqt picture decodes and encodes and loads pictures
VictoriaMetrics 简介
Three chess games
Research Report on market supply and demand and strategy of China's Plastic Geogrid industry
MySQL learning record (9)
[shutter] statefulwidget component (image component | textfield component)
Oriental Aesthetics and software design
Gbase 8s database basic syntax
MySQL learning record (1)
【剑指 Offer 】56 - II. 数组中数字出现的次数 II
China's Micro SD market trend report, technology dynamic innovation and market forecast
Image segmentation using pixellib
Cloud computing technology [2]
Golang string segmentation
暑期第一周总结
The web version of xshell supports FTP connection and SFTP connection
Construction and maintenance of business websites [10]
加了定位的文字如何水平垂直居中
China plastic bottle market trend report, technological innovation and market forecast
D4: unpaired image defogging, self enhancement method based on density and depth decomposition (CVPR 2022)