# Weird link text wrapping on mobile

**URL:** <https://community.hubspot.com/t/weird-link-text-wrapping-on-mobile/21917>\
**Category:** CMS Development\
**Tags:** css\
**Created:** [June 20, 2020, 5:36pm UTC](https://community.hubspot.com/t/weird-link-text-wrapping-on-mobile/21917 "2020-06-20T17:36:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JWharton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jwharton/32/68653_2.png) [@JWharton](https://community.hubspot.com/u/JWharton)\
**Post date:** [June 20, 2020, 5:36pm UTC](https://community.hubspot.com/t/weird-link-text-wrapping-on-mobile/21917/1 "2020-06-20T17:36:58Z")

</div>

Just using the Rich Text module.

Rather than the link text wrapping, it gets put on a separate line, breaking it away from the preceding text.

If the link text exceeds the width, it then wraps, but is separated from the following text (which starts on a new line).

 ![28393iB81B31180F285E9E.jpeg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/8/c8637a3bb21e4abbe52b1f981ee236e251c0cbdc.jpeg)

What do I want? I want the link text to display in line and wrap just like normal text.

See example at [http://5056899.hs-sites.com/about](http://5056899.hs-sites.com/about)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Chris-M](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chris-m/32/61599_2.png) [@Chris-M](https://community.hubspot.com/u/Chris-M)\
**Post date:** [June 21, 2020, 8:06am UTC](https://community.hubspot.com/t/weird-link-text-wrapping-on-mobile/21917/2 "2020-06-21T08:06:49Z")

</div>

Hi @JWharton,

your links have:

`a { display: inline-block;}`

Which causes the breaking.

It also breaks on body text.

For example:

 ![28394iAE71C63214DC0270.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/e/eee0bef2d8c91c1dc010c770f2026faad43e9cb5.png)

If you don’t want that at all, change a links to the following:

```auto
a {
 display: inline;
}

```

Or else, create a cusom class on a parent element and use the following code. Which only works for enumerations

```auto
.yourCustomClass li a {
 display: inline;
}

```

- Chris

---

<div class="post-metadata">

**Author:** ![JWharton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jwharton/32/68653_2.png) [@JWharton](https://community.hubspot.com/u/JWharton)\
**Post date:** [June 21, 2020, 2:13pm UTC](https://community.hubspot.com/t/weird-link-text-wrapping-on-mobile/21917/3 "2020-06-21T14:13:36Z")

</div>

That did it. @Chris-M you rock! Thanks.
