Welches nachfolgende Element meinst du denn?
Hier mein Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>hi</title>
<style type="text/css">
ul {
list-style:none;
border:1px solid #ccc;
overflow:auto;
float:left;
}
ul li {
float:left;
}
ul li a {
clear:left;
padding:10px;
}
</style>
</head>
<body>
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
</ul>
</body>
</html>
Allerdings, wenn ich ich ul um float:left ergänze, erstreckt sich die Listenbreite nicht mehr über den verfügbaren Platz, sondern nur noch auf eine minimale Breite.