fro0ty
11-03-2006, 02:37 PM
Hi Everyone!
I have a question about how to align some divs. Basically I want then to some divs to line up as columns, this is the code I use:
<div class="content-box">
</div>
<div class="content-box">
</div>
<div class="content-box">
</div>
<div class="content-box">
</div>
However it when a new div starts, it inserts a page break. I want them to line up next to each other.
Here is the CSS code im using
.content-box {
overflow: auto;
color: #000000;
margin: 10px;
padding: 3px;
width: 150px;
height: 150px;
}
I cant figure out what I'm missing :confused:
Thanks
I have a question about how to align some divs. Basically I want then to some divs to line up as columns, this is the code I use:
<div class="content-box">
</div>
<div class="content-box">
</div>
<div class="content-box">
</div>
<div class="content-box">
</div>
However it when a new div starts, it inserts a page break. I want them to line up next to each other.
Here is the CSS code im using
.content-box {
overflow: auto;
color: #000000;
margin: 10px;
padding: 3px;
width: 150px;
height: 150px;
}
I cant figure out what I'm missing :confused:
Thanks