Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>Relative Positioning</title>
- <meta charset="utf-8">
- <style>
- h1 { background-color: #cccccc;
- padding: 5px;
- color: #000000;
- }
- p { position: relative;
- left: 30px;
- font-family: Arial,sans-serif;
- }
- </style>
- </head>
- <body>
- <h1>Relative Positioning</h1>
- <p>This paragraph uses CSS relative positioning to be placed 30 pixels in from the left side.</p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement