HOW TO RE-SIZE THIS IMAGE TO BE SUITABLE TO THE TEXT?

jayprakash sharma

Total Post:117

Points:821
Posted by  jayprakash sharma
 1099  View(s)
Ratings:
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.

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: How to re-size this image to be suitable to the text?

    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" />  

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!