Hey everyone! I’ve recently decided to pursue a career as a Software Engineer so I’ve just learned the basics. Currently working on a Tribute Page for Luffy from the One Piece series. Does anyone know how I can compress or squeeze my first paragraph so it’s more centered on the screen and not just overflowing to the sides? https://codepen.io/nainoavillegas/pen/mdXPpzL
From what I understood from your question you can centre the paragraph by using margin: auto
in the css paragraph selector, and setting the width to a specific size. For example, 70vw(70% of the width).
You can use the margin: auto
method or you can also try using padding
.
The padding worked with vw! Thanks so much!
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.