Bienvenido a datoweb.com!! En este foro podrás encontrar ayuda sobre diseño y desarrollo web en general. Si quieres formar parte de esta comunidad para pedir ayuda o colaborar ayudando a otros usuarios del foro solo tienes que registrarte desde el siguiente enlace: Registrarse en el Foro

Como poner cada comentario en un div o caja

buenas tardes,estoy haciendo un sistema de comentarios sin base de datos,sin pedir registro.
el cual tengo el problema siguiente:cuando escriben los mensajes se queda tan que asi:
el cual queda muy feo todo junto.
os dejo el codigo por si me pueden hechar una mano,codigo html:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title><style>

</style>
</head>

<body>
<div class="comentario">
<form method="post" action="comentar.php"> 
<H3 align="center">Comentarios <a href="http://creaticode.com">dancelomania.tk</a></H3> 
<div class="comment-head">
<div align="center">
  <input  type="text"  name="nam" placeholder="Su nombre" size="20" maxlength="15" />
  <br /> 
  <div class=""><input  type="text"  name="comentario" placeholder="Escribe un comentario..." size="28" maxlength="250"/><br /></div>
  <input type="submit" value="Comentar">
</div>
</form>
 </form>
<br>
<b>COMENTARIOS DE LOS VISITANTES </b>
<div>
<?php include(com.html); ?>
</div>
</body>
</html>
y el comentar php:
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title><style>
.estilo{
	background:#999;}
</style>
</head>

<body>
<b>COMENTARIOS DE LOS VISITANTES </b>
<div class="estilo">
<? 
$filename = 'com.html'; 
if (file_exists($filename)) { 
include("com.html"); 
} else { 
echo "No hay comentarios"; 
}; 
?> 
</div>
</body>
</html>
un saludo y muchas gracias por su ayuda.
Editado
0
Puntos
1174
Visitas
0
Resp
Por Santi hace 88 meses
Principiante
Compartir en facebook
Compartir en twitter
Compartir
Para comentar Inicia sesión o Registrate