I was surprised that no one mentioned this is a PREFECT scenario for using float/overflow:hidden
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
.icoList {margin:0; padding:0; list-style: none;}
.icoList li {border-bottom: 1px #ccc solid; padding:.5em}
.icoList li > a {float:left; width:25px; height:25px; margin-right:1em }
.icoList li > a, .icoList li> span, .icoList li { overflow: hidden;}
.icoList li>span{padding-left:1em; display:block;}
/*Image replacement for accesibility*/
.icoList li > a:before {content:url(iconHORIZONTALsprite.png) }
.icoList li > a + a:before{margin-left:-30px;}
</style>
</head>
<body>
<ul class='icoList'>
<li><a href="#">Edit</a> <a href="#">Delete</a> <span>Other stuff that I want to appear on the same line as the icons but behave like an inline-block, i.e., wrap under itself instead of under the icons</span></li>
<li><a href="#">Edit</a> <a href="#">Delete</a> <span>Short line and stuff</span></li>
<li><a href="#">Edit</a> <a href="#">Delete</a> <span>Short line and stuff</span></li>
<li><a href="#">Edit</a> <a href="#">Delete</a> <span>Short line and stuff</span></li>
<li><a href="#">Edit</a> <a href="#">Delete</a> <span>Short line and stuff</span></li>
</ul>
</body>
</html>
Completely fluid, friendly for screen readers, et all.
Bookmarks