I have this code,
<span class='plabel'>Address</span> <span class='values'>: $address</span>
The CSS code :
.plabel {
display:inline-block;
width:100px;
}
.values {
margin-left:50px;
}
Now when a value is displayed the value goes to the field where the field name is displayed.
Example,
Address : XXXX,
XXXX.
I want it to be,
Address : XXXX,
XXXX.
wrap the
spanwith adivand set fixedwidthfor each one. Then usefloatfor their position.html
css
Demo: http://jsfiddle.net/48RDZ/