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>
  <h3>A button with the children wrapped in a flex container.</h3>
  <button>
    <section>
      <div>Left</div>
      <div>Right</div>
    </section>
  </button>
</body>
</html>
 
body {
  font-family: sans-serif;
}
h3 {
  font-weight: normal;
}
button {
  display: block;
  width: 100%;
  margin-bottom: 4em;
}
section {
  display: flex;
}
button div {
  flex: 1;
  color: #fff;
  font-weight: bold;
  padding: 0.666em;
  background: #ff8800;
}
button div:first-child {
  background: #ff0088;
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers