move text css code example
Example 1: how to move text down in css
p {
padding-top: 2em;
}
Example 2: how to change image position in css
.image{
position: absolute;
right:300px;
}
Example 3: how to move an image up in css
.image{
position: relative;
top: -125px;
}
Example 4: how to move anything left in css
<html>
<head>
</head>
<body>
<div style = "position:relative; left:80px; top:2px; background-color:yellow;">
This div has relative positioning.
</div>
</body>
</html>
Example 5: how to push text to the right css
padding-left: 3px;
Example 6: html how to move element to the bottom right of page
<!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>