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>
  <ul>
    <li>
      <span class='price'>30 000 руб.</span>
      <span class='obj'>Пиджак</span>
    </li>
    <li>
      <span class='price'>20 000 руб.</span>
      <span class='obj'>Брюки</span>
    </li>
    <li>
      <span class='price'>10 000 руб.</span>
      <span class='obj'>Туфли</span>
    </li>
  </ul>
</body>
</html>
 
* {
  margin: 0;
  padding: 0;
}
ul {
  list-style-type: none;
}
li {
  display: block;
}
.obj {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}
.obj:after {
  display: inline-block;
  border-bottom: 1px dotted black;
  vertical-align: baseline;
  width: 100%;
  content: '';
}
.price {
  float: right;
}
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers