move text position css code example

Example 1: how to change image position in css

.image{
  position: absolute;
  right:300px;
}

Example 2: 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 3: how to push text to the right css

padding-left: 3px;

Example 4: css position

h2.pos_left {
  position: relative;
  left: -20px;
}

h2.pos_right {
  position: relative;
  left: 20px;
}