I prefer my code to be displayed like this:
Name1
Name2 Jim
However, it is currently displaying like this:
Name1 Name2 Jim
Is there a way to change it so that it matches my preference?
CSS
.display-left {
float: left;
width: 200px;
text-align: left;
font-weight:bold
}
.display-right {
text-align: left;
}
HTML
<div class="display-left">Name1: </div>
<div class="display-right" > </div>
</div>
<div>
<div class="display-left">Name2: </div>
<div class="display-right">Jim </div>
</div>