Responsive landing page using CSS block, padding and margin
Design comparison
Community feedback
- @RabberpoliPosted over 1 year ago
Hi! Well done completing this challenge! Just a simple tip: looking at your code I saw you using
margin
andpadding
properties. This lets you achieve a pretty good result but it doesn’t guarantee a responsive behavior. In fact you had to use media queries to adjust for specific screen size; A powerful property that can ease your job in term of responsiveness isflexbox
(you can give a look at the documentation here). This property along withjustify-content
andalign-items
let you center automatically your DOM object without struggling with margins and paddings.Hoping to give helpful tips keep going and happy coding!
Marked as helpful0@Adeyemi-AyomidePosted over 1 year agoThanks so much.. I'll work on that@Rabberpoli
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord