DEV Community

Discussion on: I've made a website! Need feedback

Collapse
 
grahamthedev profile image
GrahamTheDev

Don't set a height on your image in your CSS. On my massive monitor his picture becomes very wide, on mobile his image becomes very thin.

So two things to look at / learn from:

  1. Media queries - how can you make the picture full width on a mobile but only 30% width on a desktop.
  2. How can you put an image on the page that stays at the correct proportions without causing layout shifts.

If you do a bit of research on both of the above and then ask any questions on anything you get stuck on!

Good luck with the site!

Collapse
 
guruthecoder profile image
GuruTheCoder

Thank you very much!