Answers for "how to put text at the bottom of the page in html"

CSS
2

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

/* You must use CSS to place text at the bottom of a page. */
/* To place text on a fixed position on the document: */
/* <p id="my_element"></p>*/

#my_element {
	position: fixed;
  	bottom: 0;
  
  	/* Align in the center of the page too */
  	left: 50%;
  	transform: translate(-50%, 0);
  
  	margin-bottom: 2%; /* Add some space before the border */
}
Posted by: Guest on May-25-2021

Code answers related to "how to put text at the bottom of the page in html"

Browse Popular Code Answers by Language