Move any element with css offsets

Make any element moveable without moving other items around by making it position: relative;

HTML

<head>
<style>
  h2 {
    position: relative;
    right:15px;
    top:10px;
    
  }
</style>
</head>
<body>
  <h1>On Being Well-Positioned</h1>
  <h2>Move me!</h2>
  <p>I still think the h2 is where it normally sits.</p>
</body>

Demo

On Being Well-Positioned

Move me!

I still think the h2 is where it normally sits.

Other Items in css
Page Views

This page has been viewed 69 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹