hello all,
I am trying to create 2 separated block, one is on the left, one is on the right without using position:absolute or creating a table. However,
I experienced a issue with 'float' attribute as below:
<div id="container" style="width:500px;">
<div style="float:left; width:100px; position:relative; margin-right:50px;background:#ddd;">My left text</div>
<div style="float:right; width:150px;">My right text</div>
</div>
Basically, the text "my right text" always display underneath "My left text". I could replace the tag <div> for <span> however, apply width to <span> is not possible.
Example below does not give us 100px width.
<span style="display:block; width:100px;"> my text </span>
Did I missed out any obvious thing with HTML2PDF.
Thanks
Hung