Home  >  Article  >  Web Front-end  >  Is there any way to always put something like copyright at the bottom of the entire web page_html/css_WEB-ITnose

Is there any way to always put something like copyright at the bottom of the entire web page_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:191841browse

Is there any way to always place copyright-like content at the bottom of the entire web page?
Regardless of whether there is a scroll bar or not, it will always be at the bottom, body {height:100%}


Reply to the discussion (solved Solution)


position: absolute;
bottom: 0px;

Absolute positioning, below. The one upstairs can be achieved.

position: absolute;
bottom: 0px;
The positioning is at the bottom, but not in the center. What to do

position: absolute;
bottom: 0px;
The positioning is at the bottom, but not in the center. What to do

<div style="width:100%; position: absolute;bottom: 0px;" > <div  style="width:500px;border:1px solid;margin:0 auto; " >bottom</div></div>

position: absolute;
bottom: 0px;
left:0;
right:0;
margin:0 auto;
width: Set a width yourself

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn