Hola amigos, alguien me puede ayudar a centrar el contenido del div padre.
lo eh centrado con <center>, pero no podria hacer esto con css ?
Código 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>Ejemplo</title>
<style type="text/css">
<!--
body {
padding:0;
margin:0;
}
.box-photos {
padding:1px 3px 0 2px;
width:440px;
}
.box-photos .column {
margin:5px;
width:100px;
float:left;
}
.box-photos .column div {
margin:0 0 7px 0;
border:1px #000000 solid;
width:100px;
height:100px;
}
-->
</style>
</head>
<body>
<!--<center>-->
<div class="box-photos" align="center">
<div class="column">
<div>Content for New Div Tag Goes Here</div>
<div>Content for New Div Tag Goes Here</div>
<div>Content for New Div Tag Goes Here</div>
</div>
<div class="column">
<div>Content for New Div Tag Goes Here</div>
<div>Content for New Div Tag Goes Here</div>
<div>Content for New Div Tag Goes Here</div>
</div>
<div class="column">
<div>Content for New Div Tag Goes Here</div>
<div>Content for New Div Tag Goes Here</div>
<div>Content for New Div Tag Goes Here</div>
</div>
<div class="column">
<div>Content for New Div Tag Goes Here</div>
<div>Content for New Div Tag Goes Here</div>
<div>Content for New Div Tag Goes Here</div>
</div>
</div>
<!--</center>-->
</body>
</html>