# Problems with positioning items in navigation Bar

**URL:** <https://forum.freecodecamp.org/t/problems-with-positioning-items-in-navigation-bar/314345>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [September 14, 2019, 5:13am UTC](https://forum.freecodecamp.org/t/problems-with-positioning-items-in-navigation-bar/314345 "2019-09-14T05:13:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skanda1395](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/skanda1395/32/133712_2.png) [@skanda1395](https://forum.freecodecamp.org/u/skanda1395)\
**Post date:** [September 14, 2019, 5:13am UTC](https://forum.freecodecamp.org/t/problems-with-positioning-items-in-navigation-bar/314345/1 "2019-09-14T05:13:00Z")

</div>

Here’s the link to my work-in-progress navigation bar: [Click here](https://codepen.io/skanda1395/full/BaBxdGr)

Please help me with following questions:

1. How to position my `div` element all the way to the left, when its viewed on a computer, and in center when its viewed on a tablet or a mobile?
2. How to align the text to the middle in my `div` element?
3. I want my image in the `div` element as tall as the background width of the header when viewed on mobile. How to do that?

---

<div class="post-metadata">

**Author:** ![biscuitmanz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/biscuitmanz/32/188814_2.png) [@biscuitmanz](https://forum.freecodecamp.org/u/biscuitmanz)\
**Post date:** [September 14, 2019, 7:57am UTC](https://forum.freecodecamp.org/t/problems-with-positioning-items-in-navigation-bar/314345/2 "2019-09-14T07:57:15Z")

</div>

give your header `justify-content: space-around` or`space-between` when its big and then on the @media give header an`align-items: center;`

for your image i dont know what you mean by as tall as the width?

---

<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:** [March 9, 2021, 11:25am UTC](https://forum.freecodecamp.org/t/problems-with-positioning-items-in-navigation-bar/314345/3 "2021-03-09T11:25:15Z")

</div>

Closed on March 9, 2021, 11:25am UTC


