@JBC944 since you’re not here, i’ll just finish answering…(and see my graphic above). The fact is, unless you’re developing your site for one very specific device, you won’t know what the body width is unless you set it yourself, which you could do if you wanted. The body will automatically fill approx. 100% of the window that it’s contained within, and therefore will be a different size at different times. Hopefully this helps you understand why your answer of “70%” earlier wasn’t helpful, because I was talking about a rastor image, which is built from pixels, and has definite width and height. When you resize an image, it’s usually best to stretch it diagonally, from the center point to a corner, and outwards along that path. This will retain the aspect ratio (e.g. 16:9, 3:2, etc) of the image, so that, while it might get fuzzy (pixelated), it won’t distort the image itself. If you stretch an image without maintaining the aspect ratio, it will become distorted. So resizing an image from 150x300px to 300x600px, for example, will pixelate it a little, but won’t distort it otherwise. So you asked: can i fill a div with an image without distorting it (paraphrased). I said yes. The easiest way to do this is to constraint the image’s proportions, which will usually happen when you set a width, but no height.

so say your computer is 1080x1920, and your browser window is taking up 900x1800 of that space

assuming your body is 100% of its container window’s width, the div will be 70% of that

which is 1260px

if your image is like 150px or watevs, and you’re resizing it to 1260px (for example, obviously), then it’s going to become really pixelated

the foundation of responsive web design is using dynamicly resizing elements on your webpage (fluid design), and/or using media queries to change your styles when the device meets certain criteria

@Lilyheart it's been improved SO much from a few years ago. you can make a static webpage so much simpler than with pure HTML, CSS, and JS with minimal Rails knowledge. once you learn more you can easily interact with databases and make a functional RESTful app really easily