I have three divs inside a parent div. I managed to align them horizontally, but when I add a border the third div jumps into new line. I've read many topics about this problem and couldn't find the right answer. The width of inner divs + border becomes to fat to fit the container, I believe. Any help appreciated.
HTML code:
<div class="a">
<div class="b">
<h3>Glavna pisarna</h3><hr />
<p><b>Tel.:</b> 03 749 20 90</p>
<p><b>Gsm:</b> 041 651 483</p>
<p><b>Fax:</b> 03 749 20 90</p>
<p><b>E-mail:</b></p>
</div>
<div class="c">
<h3>Direktor</h3><hr />
<p><b>Tel.:</b> 03 749 20 90</p>
<p><b>Gsm:</b> 041 651 483</p>
<p><b>Fax:</b> 03 749 20 90</p>
<p><b>E-mail:</b></p>
</div>
<div class="d">
<h3>Bar</h3><hr />
<p><b>Tel.:</b> 03 749 20 90</p>
<p><b>Gsm:</b> 041 651 483</p>
<p><b>Fax:</b> 03 749 20 90</p>
<p><b>E-mail:</b></p>
</div>
</div>
CSS code:
.a{
width: 100%;
height: 220px;
background-color: #CAE4FF;
}
.b, .c, .d{
float: left;
width: 33.33333333333%;
height: 220px;
background-color: white;
}
.b h3, .c h3, .d h3{
margin-left: 11px;
}
.b p, .c p, .d p{
margin-left: 11px;
}
.b hr, .c hr, .d hr{
width: 95%;
margin: auto;
}
.b, .c{
border-right: solid 1px;
}