当前位置:网站首页>Locate to the bottom [easy to understand]

Locate to the bottom [easy to understand]

2022-07-07 23:05:00 Full stack programmer webmaster

Hello everyone , I meet you again , I'm the king of the whole stack .

The text at the bottom is relative to body Container positioning

body { position: relative; } .footer { position: absolute; bottom: 0px; left: 50%; margin-left: -footer Half the width of the container px( example -200px;) }

<body style=”height: 2000px;”><div class=”footer” style=”width: 400px;”>0000w1234131</div></body>

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116197.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207072149334419.html