css problem
css problem
Out of context: Reply #4
- Started
- Last post
- 7 Responses
- flashbender0
in the simpliest layout, all you need is:
<style type="text/css">
<!--body{
padding:0;
margin:0;
text-align:center;
}
.contentBox{
width:622px;
text-align:left;
margin:0 auto;
}.header {
font-size: 14px;
padding:10px;
margin:0 0 10px 0;
background-color:#CCC;
border:1px dotted #CCC;
width:600px;
}.item {
font-size: 10px;
padding:10px;
margin:0 0 10px 0;
background-color:#F1F1F1;
border:1px dotted #333;
width:600px;
}
-->
</style>
</head><body>
<div class="contentBox">
<div class="header style1">Header</div>
<div class="item">item</div>
<div class="item">item</div>
<div class="item">item</div>
</div>
</body>