Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Adding Pages to a Website Style New Pages

cant resize jpg, set alignment to center using margin, or set border-radius to 100%.

I tried switching the class to an id hoping that would work. I tried to do a more specific statement or whatever ie section img {}

but that didnt work as well. tried referrencing a different jpg in about.html to no availe.

1 Answer

A image that can be scaled is called a 'fluid image'. This type of image will get resized according to the browser window's width and height Here is how you make an image fluid <blockquote>

img {
  max-width: 100%;
}

</blockquote> Here we are selecting all images on the page and setting its max-width to 100% i hope this helped, please rate my answer