. Advertisement .
..3..
. Advertisement .
..4..
Is there any simple way to position text in html?
– top: This is done by creating a class “top” and setting the text to the value “top” – bottom: This is done by creating a class “bottom” and setting the text to the value “bottom” – center: This is done by creating a class “center” and setting the text to the value “center”. Here is a suggestion for you<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Test</title>
<style>
#foo {
position: fixed;
bottom: 0;
right: 0;
}
</style>
</head>
<body>
<div id="foo">Hello World</div>
</body>
</html>
You just need to include the code below within your tag(
; h1, h2, td etc):
The kinds of positioning options in CSS are: