Latest comments
- @tunabearfish@kore4lyf
Hello, there I'll suggest you use
display: grid
andplace-content: center
on yourbody
to center your container on the page. - @lanchamarius@kore4lyf
Hello, I'll suggest you look into
aspect-ratio
,object-fit
andobject-position
to help you size and position your image properly.Marked as helpful - @Diaguore@kore4lyf
Well done👏
You can improve your design by:
- Make the container's height to fit its content by setting it
height
tofit-content
.
height: fit-content;
- Apply a shadow to the container with
box-shadow
. So that there can be a little bit of contract between the container and the background.
I hope you find these suggestions helpful...
- Make the container's height to fit its content by setting it