# Problem with hover

**URL:** <https://forum.freecodecamp.org/t/problem-with-hover/668856>\
**Category:** I Built This\
**Created:** [January 31, 2024, 10:10pm UTC](https://forum.freecodecamp.org/t/problem-with-hover/668856 "2024-01-31T22:10:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alee62580](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/alee62580/32/350286_2.png) [@alee62580](https://forum.freecodecamp.org/u/alee62580)\
**Post date:** [January 31, 2024, 10:10pm UTC](https://forum.freecodecamp.org/t/problem-with-hover/668856/1 "2024-01-31T22:10:54Z")

</div>

When I hover over my menu, the class’s width either has too much width or not enough. I found out the reason this occurred is because of this property I implemented “text-indent”. I still want to use the property as it helps align my menu. Any suggestion I’ve been struggling with this predicament for 2 weeks still not sure how to resolve this problem.

Here’s a reference to the page I want to clone:[https://us.supreme.com/](https://us.supreme.com/)

My work:[https://codepen.io/2bumb/details/yLwzvxL](https://codepen.io/2bumb/details/yLwzvxL)

.preview-item {  
text-indent: 131px;  
}

---

<div class="post-metadata">

**Author:** ![bappyasif](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bappyasif/32/190571_2.png) [@bappyasif](https://forum.freecodecamp.org/u/bappyasif)\
**Post date:** [February 1, 2024, 12:10pm UTC](https://forum.freecodecamp.org/t/problem-with-hover/668856/2 "2024-02-01T12:10:22Z")

</div>

> [@alee62580](#):
>
> When I hover over my menu, the class’s width either has too much width or not enough

did you try using “width” in “li”, if you do that than hover effect will; only take up that amount of space

happy coding 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [August 2, 2024, 12:10am UTC](https://forum.freecodecamp.org/t/problem-with-hover/668856/3 "2024-08-02T00:10:45Z")

</div>

Closed on August 2, 2024, 12:10am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
