Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div id='image'>
    <div class="hotspot"></div>
  </div>
</body>
</html>
 
html,body{
height:100%;
padding:0;
margin:0;
}
#image{
  height:100%;
  width:100%;
  background:url('https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/Alexanderplatz_Stadtmodell_1.jpg/1920px-Alexanderplatz_Stadtmodell_1.jpg');
  background-size:cover;
  background-repeat: no-repeat;
  background-position: center;
}
.hotspot{
  z-index:1;
  background:red;
  top:0;
  left:0;
  height:2%;
  width:2%;
  object-fit:cover;
  object-position: center;
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
pavantejapro
0viewers