HTML & CSS (The CSS styling doesn't seen to work on live server)
Design comparison
Solution retrospective
almost died trying to align the two <p> texts. The CSS styling doesn't seen to work in the live server( i srlsy dont know why. if u have any info about this, pls tell. Hello from Brazil.
Community feedback
- @ZMBAIGPosted almost 2 years ago
Hi,
Here are few suggestions to improve your problem.
.background { background-color: hsl(0, 0%, 100%); display: flex; align-items: center; justify-content: space-between; flex-direction: column; margin: 85% 34%; border-radius: 25px;
}-To center an object you can use Flex & Margin . i.e.
.parent{ display: flex; }
.child{ margin: auto; }
or
.parent{ display: flex; justify-content: center; align-items: center' }
For further help you can visit, Click Here
Marked as helpful0
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