html - Align image to right of text in div -


i'm sure it's easy question can't figure out. have code basically

<div> <img /> <p></p> </div> <div> <img /> <p></p> </div> 

i want image align right of text within div. i've tried far takes image out of normal page flow making div not respect height of image. can't explicitly state height of div because image inside dynamic , of set width.

here's page looks like.

how align image right of div , still have div respect height of image.

in css set overflow of div has respect height of image auto.

div {    overflow: auto;  }


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -