Im trying to change the width of my white background that is behind my image. But for some reason when I change the width it moves the whole thing to the left. How do I change the size of the background color without moving it to the left
Edit: I solved it by changing the margin instead
FIRST: Try fixing this:
The # is missing from the id #img in the CSS:
I’m seeing the image breaking out of the box to the right.
This can be corrected by:
- fixing the missing #
- Adding a relative width:
Like adding a
and removing the
SO, WE END UP WITH THIS:
Thank you! That really helped my 'img 'fill out nice.