Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id="cross"></div>
</body>
</html>
 
#cross {
   width: 100px;
   height: 100px;
   position: relative;
}
#cross:before, #cross:after {
  content: "";
  position: absolute;
  z-index: -1;
  background: #d00;
}
#cross:before {
  left: 50%;
  width: 30%;
  margin-left: -15%;
  height: 100%;
}
#cross:after {
  top: 50%;
  height: 30%;
  margin-top: -15%;
  width: 100%;
}
Output

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

Dismiss x
public
Bin info
fcalderanpro
0viewers