Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/11/2010, 14:51
Avatar de ofmjuanabascal
ofmjuanabascal
 
Fecha de Ingreso: noviembre-2010
Ubicación: Cantabria
Mensajes: 17
Antigüedad: 13 años, 5 meses
Puntos: 0
Ayuda con css sencillo

Hola necesito ayuda. Estoy intentando aprender css (ya se xhtml) y estoy con el box model. tengo este codigo xhtml:
Código:
<!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>Mi Website</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="cabecera">
<h1 class="logo">Logotipo</h1>
<form action="#" class="buscador">
<input type="text" name="buscar" value="buscar..." />
</form>
</div>
</body>
</html>
y este codigo css:
Código:
#cabecera { clear: both; }

#cabecera .logo { float: left; }
#cabecera .buscador { float: right; }


#cabecera{
padding: 1em
}
Pero la cabecera no me queda bien...

Me podrían decir donde cometo el error??