My HTML code consists of simple div tags
<div class="left">Project Name: </div>
<div class="right">should have a name</div>
<div>Shouldn't this be on a new line?</div>
These classes are defined in a stylesheet as follows:
.left {
float: left;
width: 125px;
text-align: right;
margin: 2px 10px;
display: inline
}
.right {
float: left;
text-align: left;
margin: 2px 10px;
display: inline
}
The issue I am facing is that there appears to be overlapping elements when using alignment properties with the div tags. Any subsequent div tag seems to ignore the previous ones. Please refer to http://jsfiddle.net/tea0phnr/2/ for a visual demonstration.