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 trialPiotr Manczak
Front End Web Development Techdegree Graduate 29,363 PointsHow to increase size of the picture using css
I downloaded the pic from Internet and it shows up very small. How to make it bigger using css?
2 Answers
Mia Allen
2,929 PointsWell, right now It's probably like this:
<img src = "whatever the source is">
but you want to specify the height and width! so that would be like this:
<img src = "whatever the source is" height = "height you want" width = "width you want" >
Hope this helps!
Piotr Manczak
Front End Web Development Techdegree Graduate 29,363 PointsThank you. I applied your suggestions and it works. Unfortunately the resolution of the pic suffers...
David Moorhead
18,005 PointsPiotr Manczak, you got that ^^^ right, and thanks for mentioning it, too. If image resolution is too much, load time of the page suffers. What to do?