How to center div/p elements?

I’ve been having trouble figuring out how to center the 3 links to various profiles at the bottom of the page, any advice or tips on the code is greatly appreciated!

the navbar is cluttered, though I can figure that out

the code: https://codepen.io/ri9atony/pen/KKRydbW

Is this what you’re asking?

#projects {
  text-align: center;
}

hello and welcome to fcc forum :slight_smile:

you need to target “#contact-section” and then apply what “weslleyend” suggested to use “text-align: center” to it,

happy learning :slight_smile:

1 Like

I see now. Thanks to you & weslleyend for the help^^

Based on the current HTML in your codepen, I would say you might have too much HTML around those links. Is there a reason they each need to be wrapped in a div and then the link text in a p element? If there is no specific reason for doing this then I would remove all that extra stuff and just have the three links inside of one div and then use flexbox to center them and put a gap between them.

I didn’t realize the extra wasn’t needed, thank you, the lines are much cleaner now