how to put text at the bottom of the page in html

Solutions on MaxInterview for how to put text at the bottom of the page in html by the best coders in the world

showing results for - "how to put text at the bottom of the page in html"
Baylor
29 Mar 2020
1/* You must use CSS to place text at the bottom of a page. */
2/* To place text on a fixed position on the document: */
3/* <p id="my_element"></p>*/
4
5#my_element {
6	position: fixed;
7  	bottom: 0;
8  
9  	/* Align in the center of the page too */
10  	left: 50%;
11  	transform: translate(-50%, 0);
12  
13  	margin-bottom: 2%; /* Add some space before the border */
14}