Home > DeveloperSection > Forums > How to re-size this image to be suitable to the text?
jayprakash sharma
jayprakash sharma

Total Post:117

Points:821
Posted on    September-02-2014 12:28 AM

 ASP.Net
Ratings:


 1 Reply(s)
 792  View(s)
Rate this:

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.



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    September-02-2014 12:46 AM

Hi Jay, 

Using a dynamic programming language you could generate code to:

<div class="image">

 <img width="350" src="http://placehold.it/350x150" alt="A national flag" />

</div>

<div class="text" style="width:350px;">

 This is the national flag and this is why we are using it.

</div>

<br class="clear" />  


Don't want to miss updates? Please click the below button!

Follow MindStick