Solution looks good, There are few improvements you can try is instead of setting margins in pixel try to set auto
for top bottom left right value if want to make the content to center. Try to avoid setting height and width, instead you can try min-height and max-width properties. It will make your content more responsive.
Keep learning. Thanks
Marked as helpful