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>JS Bin</title>
</head>
<body>
    unwrapped:
    <div class=unwrap>A<span class=blue> </span>B<span class=red> </span>ا<span class=green> </span>ب</div>
    <br>
    normal:
    <div>A<span class=blue> </span>B<span class=red> </span>ا<span class=green> </span>ب</div>
    <br>
    pre-wrap:
    <div class=wspr>A<span class=blue> </span>B<span class=red> </span>ا<span class=green> </span>ب</div>
</body>
</html>
 
div {
    font-family: monospace;
    border: 1px solid;
    width: 6ch;
    font-size: 2em;
}
.wspr {
    white-space: pre-wrap;
}
.unwrap {
    width: auto;
}
.blue { background: #aaaaff; }
.red {  background: #ffaaaa; }
.green {    background: #aaffaa; }
Output

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

Dismiss x
public
Bin info
frivoalpro
0viewers