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

Image positioning.

i have a picture in my html file and it sits in the top left corner on the page, i want to move it to a different position, how do i do that?

1 Answer

Hey Faruk!

There are .a few different things to consider depending on where you're trying to put your image and whether there are other elements on the page, but remember the KISS rule: Keep It Super Simple.

Just like all elements, you start by giving your image a class or id, then manipulate it with your stylesheet.

Here's a very brief, but practical explanation from Stack Overflow (which I highly recommend referring to)

https://stackoverflow.com/questions/11253415/css-moving-an-image

Hope this helps! -Jake

Thank you Jacob. I will try it out as soon as i get home.