codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Author"
content="Fabrizio Calderan, http://www.fabriziocalderan.it/" />
<title>Esempio</title>
<style type="text/css">
/* <![CDATA[ */
html, body {
margin : 0;
padding : 0;
}
.cleared:after {
display : block;
visibility : hidden;
content : ".";
height : 0;
clear : both;
}
.cleared {
clear : both; /* per Gecko */
height : 1%; /* per IE */
}
.box {
width : 402px;
border : 1px #ccc solid;
}
.box p {
margin : 0;
padding : 0;
}
.foto, .testo {
width : 199px;
float : left;
display : inline;
border : 1px #cca dashed;
}
/* ]]> */
</style>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
</head>
<body>
<div class="box cleared">
<div class="foto">
[img]avatar2.jpg[/img]
</div>
<div class="testo">
testo testo testo testo testo testo testo testo
testo testo testo testo testo testo testo testo
testo testo testo testo testo testo testo testo
testo testo testo testo testo testo testo testo
testo testo testo testo testo testo testo testo
testo testo testo testo testo testo testo testo
testo testo testo testo testo testo testo testo
testo testo testo testo testo testo testo testo
</p>
</div>
</div>
</body>
</html>
i bordi sono solo di esempio... se li togli ricorda di aumentare anche la larghezza dei box interni