I have an image and I want to re-size it to be suitable to the size of the text that will be besides to it. And the Text should be centered according to this image which will be on the left of this text.
Using a dynamic programming language you could generate code to:
<img width="350" src="http://placehold.it/350x150" alt="A national flag" />
<div class="text" style="width:350px;">
This is the national flag and this is why we are using it.
<br class="clear" />