# Some challenges faced on html. Please help

**URL:** <https://forum.freecodecamp.org/t/some-challenges-faced-on-html-please-help/295270>\
**Category:** I Built This\
**Created:** [July 15, 2019, 7:14am UTC](https://forum.freecodecamp.org/t/some-challenges-faced-on-html-please-help/295270 "2019-07-15T07:14:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lauivan](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lauivan](https://forum.freecodecamp.org/u/lauivan)\
**Post date:** [July 15, 2019, 7:14am UTC](https://forum.freecodecamp.org/t/some-challenges-faced-on-html-please-help/295270/1 "2019-07-15T07:14:09Z")

</div>

Hi. I just completed my personal portfolio page. Would love some feedback. Here is the link: [https://codepen.io/lauivan/pen/MMBELb](https://codepen.io/lauivan/pen/MMBELb)

Challenges faced:

1. How do I get the dimensions of nav-bar to remain fixed. Some changes made to the projects section will make the dimensions of the nav-bar to run i.e. adding a css code position: flex; to the projects section, changes the dimensions of the nav-bar.

2. How do I center the elements in the project’s section? I have tried align-text: center; and align-items: center; but none of them have worked. So, used margin to center the elements relatively.

---

<div class="post-metadata">

**Author:** ![xavier-machado](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/xavier-machado/32/119053_2.png) [@xavier-machado](https://forum.freecodecamp.org/u/xavier-machado)\
**Post date:** [July 15, 2019, 8:13am UTC](https://forum.freecodecamp.org/t/some-challenges-faced-on-html-please-help/295270/2 "2019-07-15T08:13:58Z")

</div>

Hello,

```auto
<!-- START WELCOME SECTION 
-->
  <main>
    <h1>Hi! My name is Ivan. <br> These are some of the projects that I have been working on.</h1>
    <div>
    <h3> Projects </h3>
    <p><a href="https://codepen.io/lauivan/pen/jjRGMq">Tesla Webpage</a>
    <p><a href="https://codepen.io/lauivan/pen/KjWmbm">Minimal Store</a>
    </div>
</main>
<!-- END WELCOME SECTION -->

```

As you can see here, you don’t have any sections. I would advise you to create a `<section>` tag for both the Welcome and the Projects, then give classes to the sections and try to do what you’ve been trying.

As for the projects sections, this would be a good time to learn and mess around with the **grid** , you will manage to centre everything fine, and also if you want, you can also easily make it responsive to smaller screens with the grid, so try to do that.

Good luck

---

<div class="post-metadata">

**Author:** ![lauivan](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lauivan](https://forum.freecodecamp.org/u/lauivan)\
**Post date:** [July 15, 2019, 12:30pm UTC](https://forum.freecodecamp.org/t/some-challenges-faced-on-html-please-help/295270/3 "2019-07-15T12:30:01Z")

</div>

Thank you very much for the feedback. I really appreciate it 🙂

---

<div class="post-metadata">

**Author:** ![tlc35us](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tlc35us](https://forum.freecodecamp.org/u/tlc35us)\
**Post date:** [July 15, 2019, 6:50pm UTC](https://forum.freecodecamp.org/t/some-challenges-faced-on-html-please-help/295270/4 "2019-07-15T18:50:05Z")

</div>

Text is an `inline` thing. So `text-align` works on things that are `display: inline;`. Your projects are currently in `p` which are `display: block;`. You align those with `margin`.

---

<div class="post-metadata">

**Author:** ![lauivan](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lauivan](https://forum.freecodecamp.org/u/lauivan)\
**Post date:** [July 16, 2019, 12:54pm UTC](https://forum.freecodecamp.org/t/some-challenges-faced-on-html-please-help/295270/5 "2019-07-16T12:54:15Z")

</div>

Hey, thanks for the feedback. I will try that.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 6, 2021, 1:31pm UTC](https://forum.freecodecamp.org/t/some-challenges-faced-on-html-please-help/295270/6 "2021-02-06T13:31:54Z")

</div>

Closed on February 6, 2021, 1:31pm UTC


