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="parent">
  <div class="box1 tallest"></div>
  <span>Descenders: j p q y </span>
  <div class="box2"></div>
</div>
</body>
</html>
 
.parent {
  background-color: lightgray;
  /* overflow: hidden; */
  font-size: 1.2em;
  height: 150px;
}
.parent .tallest {
  position: relative;
  height: 150px;
  margin-left: 100px;
}
.parent .tallest:after {
  content: "";
  position: absolute;
  bottom: 0; left: -1000%; right: -1000%;
  height: 2px;
  background-color: red;
}
.parent .tallest:before {
  content: "Baseline";
  position: absolute;
  bottom: 0; left: -80px;
  color: red;
}
.parent > * {
  display: inline-block;
  vertical-align: bottom;
}
.parent span {
  position: relative;
}
.box1, .box2 {
  width: 100px;
  height: 100px;
}
.box1 {
    background-color: gold;
}
.box2 {
  background-color: green;
  height: 50px;
}
Output

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

Dismiss x
public
Bin info
qolamipro
0viewers