I've the below HTML.
<div class="version_text">
<div class="left">Rakesh Keerthi</div>
<div class="center">Rakesh Keerthi</div>
<div class="rght">Rakesh Keerthi</div>
</div>
And with the below CSS.
div.version_text{
width:100%;
margin-top:10px;
border-top:1px solid orange;
border-bottom:1px solid orange;
}
div.version_text div.left{
display:block;
float:right;
width:33%;
}
div.version_text div.center{
display:block;
float:right;
width:33%;
}
div.version_text div.rght{
display:block;
float:right;
width:33%;
}
here i'm able to float the divs side by side but the content which has to go between the borders comes after the borders.
The expected output is as below.
____________________________________________________
Rakesh Keerthi Rakesh Keerthi Rakesh Keerthi
____________________________________________________
but i'm getting a different output. here is the fiddle link (Fiddle).
please let me know where am I going wrong and how to fix it.
Thanks.