gitizo / dsn1674-project-1

0 stars 0 forks source link

img border trouble #2

Open gitizo opened 9 years ago

gitizo commented 9 years ago

When I wrap a figure tag around my img in html then style it in css, the border changes dimensions when I change the window size. screen shot 2015-02-06 at 9 03 41 pm

@thomasjbradley

thomasjbradley commented 9 years ago

It is correct that the border changes dimensions, the problem is that the image doesn't change size.

You'll need to target the images in your CSS and give them a width, like:

img {
  width: 100%;
}

This will force the image to be only as wide as the thing that it's inside.