p#offset { margin: 0; background: pink; border: 1px solid crimson; position: relative; top: 10px; right: 10px; } </style> </head> <body> <div> <p id='offset'> This element is offset from its original position to the right. </p> </div> </body> </html>