# Create Background with CSS

**URL:** https://community.glideapps.com/t/create-background-with-css/16403
**Category:** Ask for Help
**Created:** [September 26, 2020, 7:21pm UTC](https://community.glideapps.com/t/create-background-with-css/16403 "2020-09-26T19:21:57Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 26, 2020, 7:21pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/1 "2020-09-26T19:21:57Z")

</div>

Hi!

I am trying to create the blue background you see below. Does anyone have an idea of how I can do that? The image is an inline list pulling a single image.  
Also once I create a CSS template column, how do I apply it to the tab?

Thanks!

 ![HEADER1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/f/fc08e1843287597b72fc841ee0399212eff29bf2.jpeg) ![HEADER](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/3/34da6a89ad2fede5e208df94698bc02d87e4a39a.png)

---

<div class="post-metadata">

### Author: ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)
#### Post date: [September 26, 2020, 7:33pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/2 "2020-09-26T19:33:46Z")

</div>

The inline list would be filtered to show the value you’re hoping to show (so you could have a column in your sheet with a value “true” for the row you want to show, then filter the list to only show true rows).

CSS can be applied by adding it as a rich text component. I don’t think this is actually supported by Glide though, so use at your own risk.

---

<div class="post-metadata">

### Author: ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)
#### Post date: [September 26, 2020, 7:45pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/3 "2020-09-26T19:45:08Z")

</div>

Hey @Jen_NYCP,

I don’t know if I understood your question correctly but CSS was discussed here in this thread.

[Beautiful Design App](https://community.glideapps.com/t/beautiful-design-app/16191/44)

---

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 26, 2020, 7:51pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/4 "2020-09-26T19:51:20Z")

</div>

Oh yes, the inline list is being shown as I want it. Its the background I am trying to create. I just have no idea what the code would look like.

---

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 26, 2020, 7:52pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/5 "2020-09-26T19:52:11Z")

</div>

Yes, I think they are using image components instead so not sure if its the same code.

---

<div class="post-metadata">

### Author: ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)
#### Post date: [September 26, 2020, 7:54pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/6 "2020-09-26T19:54:16Z")

</div>

I added the code that turns my entire background black, but maybe you can fidget with it or until someone can give you a better resource:

[https://docs.google.com/document/d/1F0iwtlecciW8hlk84nA5hLDXroxhhPTvSZkKDDZIn8o/edit?usp=sharing](https://docs.google.com/document/d/1F0iwtlecciW8hlk84nA5hLDXroxhhPTvSZkKDDZIn8o/edit?usp=sharing)

And did you catch this:

> [@Beautiful Design App](https://community.glideapps.com/t/beautiful-design-app/16191/44):
>
> Several ways. Depends what else is on the screen. You can use an image component and then style it. I’m using a round tile component, setting it to 2 tiles per row and then creating a Rich text box with this CSS: .fdeRBK { grid-template-columns: repeat(1, 1fr); width: 200px; margin: auto; } If you want the colored background, I placed the rich text box with the CSS at the very top and included this CSS: \<pre\> \<span\>\<style\> [data-test=app-markdown-view] { background-image: url("…

---

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 26, 2020, 8:09pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/7 "2020-09-26T20:09:02Z")

</div>

Yes, I tried Robert’s, but it just adds a BG to the subtitle.

For yours, where is the hex code or where does the black color come in? I don’t see anything like that in the Background code.

---

<div class="post-metadata">

### Author: ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)
#### Post date: [September 26, 2020, 8:12pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/8 "2020-09-26T20:12:57Z")

</div>

I have no idea. lol. I was actually thinking the same thing when I sent it to you. But try this thread. @Lucas_Pires is the king of design - and he gives instructions in this thread.

> [@Salon Beauty/ Barber Shop app💈](https://community.glideapps.com/t/salon-beauty-barber-shop-app/4314):
>
> Hey hey, Gliders! First topic here! I’ve been using and abusing glide all over my days for months. And to open this topic, I wanna introduce you my new brand Salon Beauty/ Barber Shop app! barber What will you see here? Circle Profile Image using Rich Text (not tiles); Screens and Font Color totally personalized by the theme and for each person. And much more. Let’s take a look. I made two apps for Salon Beauty/ Barber Shop app! barber: Admin Clients Adminiphone point_right [htt…](https://sallonadmintemplate.glideapp.io)

---

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 26, 2020, 9:31pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/9 "2020-09-26T21:31:39Z")

</div>

Hmm, doesn’t work just adds a big white space. It’s working inside the image, not outside of it.

---

<div class="post-metadata">

### Author: ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)
#### Post date: [September 26, 2020, 9:35pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/10 "2020-09-26T21:35:33Z")

</div>

Ughhhh! Well then, we wait for @ThinhDinh to wake up. 😂

---

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 26, 2020, 9:38pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/11 "2020-09-26T21:38:47Z")

</div>

Lol! Thanks for your help!  
I’ll play around with it a little more.

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [September 26, 2020, 10:01pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/12 "2020-09-26T22:01:43Z")

</div>

```
<a style="position: absolute; 
    width:100%; 
    top:-86px; 
    right: 0%; 
    z-index:-1; 
    opacity: 1;">
    <div style="background-color: #161172; margin: 0%; padding: 130px;">

```

Change: `background-color` and `padding` to change the size

> Tip: put rich text as first component

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [September 26, 2020, 10:04pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/13 "2020-09-26T22:04:36Z")

</div>

And where is the tab name, its a nav-bar. Is it possible to change? yes.  
But we gotta use advanced CSS to change it

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [September 26, 2020, 10:06pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/14 "2020-09-26T22:06:01Z")

</div>

Right. Create a rich text box as the top component  
In the box, use CSS to set the position as absolute. Then you can adjust the size, background color and z index of the box to achieve your mock-up.

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [September 26, 2020, 10:06pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/15 "2020-09-26T22:06:24Z")

</div>

Perfect

---

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 26, 2020, 10:43pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/16 "2020-09-26T22:43:02Z")

</div>

Oh nice!! Thanks! Before seeing this, I ended up using the code Lucas mentioned here, it almost works, but…

> [@Component background color](https://community.glideapps.com/t/component-background-color/10712/4):
>
> @adelhammoud a lil’ trick may help you
> 
> In Data editor, create a Template column and add this code:
> 
> ```auto
> <a style="position: fixed;
> width: 100%;
> top:10%;
> right: 0%; z-index:-1;">
> <img src="URL" /></a>
> 
> ```
> 
> Replace **URL** to the Pic column. In the screen you wanna add this background, add a Rich Text component and the result will something like this 👇🏼
> 
> (The code is not 100%, but when I improve it, it’s cool to fit the image in the whole screen)

it shows up differently on the front end from what I see in the builder. Also trying to get the blue background all the way to the top.

 ![header3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/5/553d8aa5cabfb8abb8894adc12f85e3aee8eeb24.png) ![Screenshot_20200926-183303_Chrome](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/6/6319bdc89d6f753c290e9727836346380d00d357.jpeg)

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [September 27, 2020, 6:20am UTC](https://community.glideapps.com/t/create-background-with-css/16403/17 "2020-09-27T06:20:35Z")

</div>

> [@Lucas\_Pires](#):
>
> Tip: put rich text as first component

As I said here…

---

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 27, 2020, 12:06pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/18 "2020-09-27T12:06:15Z")

</div>

Is it at the very top. The first block. You can see in the first one on the builder shows it correctly, but on the user end it does not.

---

<div class="post-metadata">

### Author: ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)
#### Post date: [September 27, 2020, 7:40pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/19 "2020-09-27T19:40:54Z")

</div>

Have you change `top` in the code? This must be `top:0px;`

---

<div class="post-metadata">

### Author: ![Jen\_NYCP](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@Jen\_NYCP](https://community.glideapps.com/u/Jen_NYCP)
#### Post date: [September 28, 2020, 4:14pm UTC](https://community.glideapps.com/t/create-background-with-css/16403/20 "2020-09-28T16:14:22Z")

</div>

Yess that worked. Thank you!!

[Next page](https://community.glideapps.com/t/create-background-with-css/16403.md?page=2)
