Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Manipulate DOM elements</title>
</head>
<body>
  <div class="something active">foo</div>
  <div class="something active">bar</div>
  <div class="something active">baz</div>
  <div class="something active">fooz</div>
  
  <button class="button">Deativate</button>
</body>
</html>
 
.something {
  background-color: #ccc;
  color: #ddd;
  width: calc(25% - 30px);
  float: left;
  padding: 10px;
  margin: 0 10px 10px 0;
}
.something.active {
  background-color: gray;
  color: white;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers