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

CSS

Need help with images in css

Hi there, I have this line of code right here, and the width and height attribute were custom added by me. Here's the line of code <img src="img/pumpsy.jpg" width="300" height="199" alt=""> Now, since this is the size of all my images, all of them are identical, but when I resize my screen, everything is responsive, but this image2 image gets all distorted. Do I have to add something in my responsive.css or something? Hope you can help!

Hi Gabriel,

We can't see your code. Can you put it in there again?

Elian

Here it is <img src="img/dog234.jpg" width="300px" height="199px" alt=""> Sorry for the inconvenience!

<img src="img/233973.jpg" width="300px" height="199px" alt="">

Why the heck can't I post it?!?!?!?!?!?!

1 Answer

Hi Gabriel, in order to post you code you must use the proper markdown so it will show.

Code Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.

Example is below, leave off the "(" and ")" symbols when you try to post here.

      (```html
               <p>your code goes here</p>
      (```)
      ```html
      <p>Done right, your code will show like this!</p>
      ```