Hi @CuriousFullStacks
When you remove the width: 70%
in your <p>
element and add padding-inline: 2rem;
, the text should look the same as the design.
Hope this helps 😊
Marked as helpful
@CuriousFullStacks
Posted
@Yasmine10 Thank you! I never knew about this property.
@CuriousFullStacks
There are also other ways to do the same like
padding: 0 2rem;
or padding-left: 2rem; padding-right: 2rem;
Those do the exact same thing, I just prefer using padding-inline
Marked as helpful