Latest solutions
Latest comments
- @JeshrunSamuelSubmitted over 2 years ago@lux4198Posted over 2 years ago
I think you did very well. The container is responsive as it is so there is nothing wrong with it. If you want you could leave out the media query and instead set a min-width of the container element. This way it won't shrink beyond a certain point. Also instead of position absolute, you can do margin : auto to center the container element, these are just suggestions though. Your solution works fine as it is.
Marked as helpful0 - @FvnnicoSubmitted over 2 years ago@lux4198Posted over 2 years ago
If you're unsure about the width of the container, try using min-width and max-width or width : clamp(). This keeps the container between a set of widths and doesn't make it too wide or too narrow. This is especially useful if you want the container to adapt to different screen sizes. Other than that your solution looks really good!
Marked as helpful1