Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Negative Margin?">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <ul> 
    <li class="col1">Eggs</li>
    <li class="col1">Ham</li>
    
    <li class="col2 top">Bread</li>
    <li class="col2">Butter</li>
    
    <li class="col3 top">Flour</li>
    <li class="col3">Cream</li>
  </ul>
</body>
</html>
 
/* ul {list-style:none;} */
/* li {line-height:1.3em;} */
.col2 {margin-left:100px;}
.col3 {margin-left:200px;}
.top {margin-top:-2.6em;} /* the clincher */
li {
  border: solid 1px black;
}
Output

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

Dismiss x
public
Bin info
dmitrizpro
0viewers