Like this?
Live demo
This has an advantage (depending on what you want) over other answers posted so far - if the height of the text content is larger than the image, the text will remain flash (will not wrap around the image).
CSS
#content { margin-left: 210px } #theDiv img { float: left }
HTML:
<div id="theDiv"> <img src="http://dummyimage.com/200x300/f0f/fff" /> <div id="content"> <h3>how to display img with p, h3 in one line inside the div?</h3> <p>Hey, i need to display the image on the left side of the div, h3 and p on the rifgt side of the div next to img. Can anyone tell me the answer in css and html? Thanks</p> <p>Hey, i need to display the image on the left side of the div, h3 and p on the rifgt side of the div next to img. Can anyone tell me the answer in css and html? Thanks</p> <p>Hey, i need to display the image on the left side of the div, h3 and p on the rifgt side of the div next to img. Can anyone tell me the answer in css and html? Thanks</p> <p>Hey, i need to display the image on the left side of the div, h3 and p on the rifgt side of the div next to img. Can anyone tell me the answer in css and html? Thanks</p> <p>Hey, i need to display the image on the left side of the div, h3 and p on the rifgt side of the div next to img. Can anyone tell me the answer in css and html? Thanks</p> <p>Hey, i need to display the image on the left side of the div, h3 and p on the rifgt side of the div next to img. Can anyone tell me the answer in css and html? Thanks</p> </div> </div>
source share