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>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
  <div id="wrap">
    <img>
    <ul id="bar">
      <li class="foo foo1">
        <img src="http://placehold.it/350x150">
      </li>
      <li class="foo foo2">
        <img src="http://placehold.it/350x150">
      </li>
    </ul>
    </img>
  </div>
</body>
</html>
 
li{
  display: inline-block;
}
ul{
  padding: 0px;
  border: 1px solid red;
}
img {
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
}
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers