I made three things on the same line with divs and CSS float left and right. But the thing in the middle is not centered and it's not wide enough. How do I make the middle thing centered? Edit: Thankyou all for helping me. I appreciated
.box1 {
float: left;
}
.box2 {
float: left;
}
.box3 {
float: right;
}
<div class="box1">
<p>hello</p>
</div>
<div class="box2">
<table>
</table>
</div>
<div class="box3">
<p>Hello again</p>
</div>