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="container">
    <div id="triangle-topleft"></div>
  </div>
  <br />
  <div id="container2">
    <div id="triangle-topleft2"></div>
  </div>
  <br />
  <div id="container3">
    <div id="triangle-topleft3"></div>
  </div>
</body>
</html>
 
#container {
  height: 100px;
  width: 100px;
  overflow: hidden;
  background-image: url(http://www.webdesign.org/img_articles/14881/site-background-pattern-07.jpg);
}
#triangle-topleft { 
  width: 0; 
  height: 0; 
  border-top: 100px solid gray; 
  border-right: 100px solid transparent;
}
#container2 {
  height: 100px;
  width: 100px;
  overflow: hidden;
  background-image: url(http://www.webdesign.org/img_articles/14881/site-background-pattern-07.jpg);
}
#triangle-topleft2 { 
  width: 0; 
  height: 0; 
  border-top: 150px solid gray; 
  border-right: 150px solid transparent;
}
#container3 {
  height: 100px;
  width: 100px;
  overflow: hidden;
  background-image: url(http://www.webdesign.org/img_articles/14881/site-background-pattern-07.jpg);
}
#triangle-topleft3 { 
  width: 0; 
  height: 0; 
  border-top: 50px solid gray; 
  border-right: 50px solid transparent;
}
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers