# Display long title on the top screen

**URL:** https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857
**Category:** Ask for Help
**Tags:** custom-css
**Created:** [June 4, 2024, 10:23am UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857 "2024-06-04T10:23:36Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Fabien\_Vermot](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabien_vermot/32/5955_2.png) [@Fabien\_Vermot](https://community.glideapps.com/u/Fabien_Vermot)
#### Post date: [June 4, 2024, 10:23am UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/1 "2024-06-04T10:23:36Z")

</div>

Hello,

I would like to know how to display using CSS an entire long title at the top of the screen (see screenshot below the title in the green circle).

 ![Capture d’écran 2024-06-04 à 12.13.32](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/c/1ca0fba0eb2521b044ac35a6dcefa0a80c5e867d.png)

Is it possible to display it on one or two lines?

Thanks for your help and your ideas

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [June 4, 2024, 11:55am UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/2 "2024-06-04T11:55:16Z")

</div>

This is strange because I don’t see that in the new app. Is your application the classic one?

---

<div class="post-metadata">

### Author: ![Fabien\_Vermot](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabien_vermot/32/5955_2.png) [@Fabien\_Vermot](https://community.glideapps.com/u/Fabien_Vermot)
#### Post date: [June 4, 2024, 11:58am UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/3 "2024-06-04T11:58:54Z")

</div>

Nope it is a new app.

I’ve already applied a custom css code :

```auto
#page-root:has(.home-custom-class) span[class*="unified-nav-bar"] {
   white-space: break-spaces !important;
}

```

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [June 4, 2024, 12:53pm UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/4 "2024-06-04T12:53:22Z")

</div>

Use this code if you want to be flexible:

```auto
#page-root:has(.home-custom-class) span[class*="unified-nav-bar"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  white-space: normal;
}

```

---

<div class="post-metadata">

### Author: ![Fabien\_Vermot](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabien_vermot/32/5955_2.png) [@Fabien\_Vermot](https://community.glideapps.com/u/Fabien_Vermot)
#### Post date: [June 4, 2024, 5:47pm UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/5 "2024-06-04T17:47:19Z")

</div>

Thanks @Himaladin

I’ve still a little issue. I’d like to display the whole title and to center it (cf. screenshot below)

 ![Capture d’écran 2024-06-04 à 19.45.53](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/808e6c451331443ea78f4a15908848583d6b415e.png)

Any ideas please ?

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [June 4, 2024, 11:17pm UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/6 "2024-06-04T23:17:03Z")

</div>

You can add the following code: “text-align: center;”

---

<div class="post-metadata">

### Author: ![Fabien\_Vermot](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabien_vermot/32/5955_2.png) [@Fabien\_Vermot](https://community.glideapps.com/u/Fabien_Vermot)
#### Post date: [June 5, 2024, 6:51am UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/7 "2024-06-05T06:51:18Z")

</div>

Thanks for your help 🙏🏼  
It is perfect to center the text 😉  
Do you know if there is a way to enlarge the box containing the title in order to display the whole text ?

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [June 5, 2024, 7:27am UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/8 "2024-06-05T07:27:26Z")

</div>

This will affect the siblings. Are you sure?

```auto
#page-root:has(.home-custom-class) #nav-root > div > div > div > header, #page-root:has(.home-custom-class) #nav-root > div > div > div > header > div > div {
height:fit-content;
padding-bottom:10px;
}

```

 ![Screenshot 2024-06-05 at 14.49.32](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/0/c0f77e8e2a1bb11da8c0859d4006bfe66aded9aa.png)

---

<div class="post-metadata">

### Author: ![Fabien\_Vermot](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabien_vermot/32/5955_2.png) [@Fabien\_Vermot](https://community.glideapps.com/u/Fabien_Vermot)
#### Post date: [June 5, 2024, 8:05pm UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/9 "2024-06-05T20:05:34Z")

</div>

Thanks @Himaladin  
In fact, it is not really good.  
I thought that it was possible to enlarge the width of the box containing the title. But probably not ☹  
Thanks for your help

---

<div class="post-metadata">

### Author: ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)
#### Post date: [June 6, 2024, 12:37am UTC](https://community.glideapps.com/t/display-long-title-on-the-top-screen/73857/10 "2024-06-06T00:37:42Z")

</div>

You should directly use another component by hiding the nav header.
