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 class="panel">
    <div class="panel-header clearfix">
      <h2>Title</h2>
      <div class="actions">
        <button>Add</button>
      </div>
    </div>
    <div class="panel-content">
      Content
    </div>
  </div>
  
  
  <div class="panel">
    <div class="panel-header clearfix">
      <div class="form-group">
        <label>A Label</label>
        <select>
          <option>Something</option>
        </select>
      </div>
      <div class="actions">
        <button>Add</button>
      </div>
    </div>
    <div class="panel-content">
      Content
    </div>
  </div>
</body>
</html>
 
/* General form styles */
.form-group
{
  /* like bootstrap, need space between form inputs */
  margin-bottom: 10px;
}
.form-group label
{
  display: block;
}
/* Panel styles */
.panel
{
  border: 1px solid black;
  background-color: white;
  margin: 20px;
}
.panel-header
{
  padding: 10px;
  border-bottom: 1px solid grey;
}
.panel-header h2
{
  font-size: 25px;
  margin: 0px;
  display: block;
  float: left;
}
.panel-header .form-group
{
  float: left;
}
.panel-header .actions
{
  float: right;
  margin-top: 2px; /* nudge down to try and line up with title */
}
.panel-content
{
  padding: 10px;
}
/* generic clear fix */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers