CSS:
codice:
html, body{
margin:0;
padding:0;
font-family: "Trebuchet MS", Georgia, Verdana, Arial, Helvetica, sans-serif;
font-size:100%;
text-align:center;
}
#container{
margin:30px auto;
padding:0;
background:#8a9;
height:7em;
line-height:7em;
}
.sin{
margin:0;
padding:0;
width:200px;
background:transparent;
float:left;
}
.sin h3{
margin:0;
padding:0 0 0 10px;
font-size: 1.2em;
color:#fff;
}
.des{
margin:0;
padding:0;
width:200px;
background:transparent;
float:right;
text-align:right;
}
.des h3{
margin:0;
padding:0 10px 0 0;
font-size: 1.2em;
color:#fff;
}
</style>
HTML:
codice:
<body>
<div id="container">
<div class="sin"><h3>Contenitore di sx</h3></div>
<div class="des"><h3>Contenitore di dx</h3></div>
</div>
</body>
</html>