0

I want the image to float on the left of the green box (see dashed area.)

target position of the image

How can I achieve that with the markup used here?:

http://codepen.io/anon/pen/NGNbbB


I expected the following CSS to do the job. But this dies not work:

#content article {float: left;}
Benedikt
  • 954
  • 3
  • 14
  • 25
  • `#content-wrapper #content article img { float: left; max-width: 20%; margin: 0px 20px 20px 0px;}` try using this, further you can play with `max-width` – vivekkupadhyay Sep 17 '15 at 09:02

1 Answers1

0

Just set the widthof your .article to:

#content-wrapper #content article {
      width: calc(100% - 250px); }

where "250px" is the fixed width of your green box.

And add to your image:

img {width:100%;}

Fiddle

Alvaro Menéndez
  • 8,766
  • 3
  • 37
  • 57