Hallo allerseits!
"Müssen floats immer gecleared werden?" Die Frage würde ich eigentlich immer bejahen.
Jedoch stoße ich im Netz immer wieder auf Beispiele, in denen munter gefloated wird ohne ein clearendes Element zu verwenden.
Beispiel: Styling von forms mittels definition lists & css.
Dort wird folgendes geposted:
HTML-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Example 2 - Styling forms with definition lists</title>
<style type="text/css">
form{
width:500px;
}
form dt{
float:left;
width:150px;
}
form dd{
margin-bottom:6px;
}
</style>
</head>
<body>
<p>This is an example form and is related to the post <a rel="start" href="http://www.aaronwitherow.co.uk/blog/comments/styling_forms_with_definition_lists/">Styling Forms with Definition Lists</a></p>
<form method="post" action="#">
<fieldset>
<dl>
<dt><label for="firstname">First Name:</label></dt>
<dd><input type="text" id="firstname" /></dd>
<dt><label for="lastname">Last Name:</label></dt>
<dd><input type="text" id="lastname" /></dd>
<dt><label for="email">Email Address:</label></dt>
<dd><input type="text" id="email" /></dd>
<dt><label for="comments">Comments:</label></dt>
<dd><textarea rows="5" cols="30" id="comments"></textarea></dd>
</dl>
<input type="submit" value="Submit" />
</fieldset>
</form>
</body>
</html>
Nirgendwo ein "clear". Eigentlich müsste doch soetwas geschrieben, werden oder?
HTML-Code:
<dd><input type="text" id="lastname" /></dd><br style="clear: left;" />
Wobei ich nicht weiß ob der break dort überhaupt stehen darf.
Experten-Meinungen? 
Grüße,
Fred