# Still searching for dashboard colour adjustment on this part

**URL:** https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197
**Category:** Dashboard
**Created:** [30 June 2018 04:15 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197 "2018-06-30T04:15:34Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 04:15 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/1 "2018-06-30T04:15:34Z")

</div>

Ok, sorry folks, but here is today's dumb question:

(See attached)

I am looking at the code for this page - as an example.

I know how to set the BACKGROUND colour (or picture) is set, but I don't know how to put a picture on the part pointed to by the line.

* * *

I am working on it, but need to ask the question because I am not confident I can nut it out myself with the NAME of the area.  
I know with the background it is:

```auto
<style>
    body {
        background-image: url("/Pictures/Relay2.jpg");
    }
</style>

```

But that is background-image.  
Is it as simple as foreground-image?  
(Tried - doesn't seem to work.)

I can't find a key word in there to help me get it right/working.

![Screenshot%20from%202018-06-30%2014-01-24](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/5415592a8d24c9e1e459e7fa7e02d007a92d26ec.png)

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [30 June 2018 06:59 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/2 "2018-06-30T06:59:43Z")

</div>

Tty the standard HTML \<img tag

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 07:09 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/3 "2018-06-30T07:09:27Z")

</div>

Sorry but you may need to elaborate on that…

I’m still at the shallow end of the pool.

I am also trying to get through 2 x 3 hour Javascript video tutorials.  
Fun fun fun.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [30 June 2018 07:46 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/4 "2018-06-30T07:46:35Z")

</div>

Start by typing HTML img tag into google

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [30 June 2018 08:11 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/5 "2018-06-30T08:11:42Z")

</div>

@Trying_to_learn the piece of info missing in Dave’s reply is you should add a ui\_template to the group you want to add an image to. Within that template you can the necessary html for inserting an image… which is what Dave is pointing you towards.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 10:53 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/6 "2018-06-30T10:53:02Z")

</div>

Thanks.

That too helps.

I sort of got the idea I needed to “edit” the “img tag” thingy, but FINDING it is a whole other story.

I attempted to look at the source but even with that simple page there is a tone of stuff.  
I did add the extra/weird name to help me find that part of the code.  
But even then… Where?

Moving the mouse is crazy (while viewing the source - or what ever it is called when you press the F12 button) all the flashing/highlighting of stuff.

But now I also know that I am looking for “img” it may help.

My goal is rather than a basic colour (easy) or a picture (granted) I am wanting to add a “texture” which is - I guess - a very small “picture” which is wallpapered all over the area to give a more textured image than a basic flat colour or complicated picture.

I do get also that I need to add a ui\_template node to allow easy editing of the part of the screen.  
But, then again: I’m a bit stuck on how that works with what I’ve seen.

The node gets “pointed to” which part of the page is to be altered.  
But that is usually the “background” part and not the … other part I want to edit.

I’m guessing that it would be the “Messages/Viewyuyuyuyuyu” part.

Those Javascript clips were… a bit full on and I am recovering from what I have seen.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 11:53 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/7 "2018-06-30T11:53:59Z")

</div>

Well, some movement.......

I tried a different page with even less things on it.

I searched the code (via pressing F12) and found this part:  
See attached.

So, I can see the part which assigns the colour of the background-colour.  
If I click in the colour selector and move the mouse, I see that part of the screen change colour.

Now I need to learn how to work out how to put in the code to put the picture there.

 ![Screenshot%20from%202018-06-30%2021-48-35](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/961b6f39c718dbed4e326923cdd61b89f8df3e21.png)

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [30 June 2018 12:08 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/8 "2018-06-30T12:08:31Z")

</div>

No, you do not need to be digging into the structure of the page.

Add a uitemplate node. Edit the uitemplate node and set its content to an html IMG tag. Ensure it is in the group where you want the image to appear.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 12:25 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/9 "2018-06-30T12:25:30Z")

</div>

Sorry, it wasn't I was wanting to do it the hardest way.

I was looking there out of curiosity on "where" all the stuff happens.

Ok, SOMETHING has happened.

I set the area to 6 x 4 (see attached)  
but it seems to not quite be working.

The group is Buttons [Master Control] and originally it was 6 x 1.  
I put it to 6 x 4 to see what happened. I don't get it.

(Quick edit:  
This is what is in the ui\_control node

```auto
<div ng-bind-html="msg.payload"></div>
<img src="/Pictures/metal_1.jpg">

```

)

 ![Screenshot%20from%202018-06-30%2022-22-32](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/eaa482526b136024e0888f4fc079122b794e31ac.png) ![Screenshot%20from%202018-06-30%2022-22-01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/42be138866f6ed0458107d127a494d7a27b2e97f.jpg)

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [30 June 2018 12:45 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/10 "2018-06-30T12:45:34Z")

</div>

Is your intention to add an image within the group _next_ to the existing widgets, or do you want to set it as the background of the whole group, _behind_ the existing widgets?

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 12:50 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/11 "2018-06-30T12:50:01Z")

</div>

I am wanting that image to be the background for that group.

So there will be the metal pattern and the “this is a text input box” and the other thing are overlaid.

That way (explaining the dream) putting aside the “background image” I can have these groups on the screen and have a pattern/texture/picture behind them all giving them a more realistic look than just a plain colour.

I’ve picked this example just to help highlight what I am wanting to do. Though it does kind of look nice-ish.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 13:01 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/12 "2018-06-30T13:01:25Z")

</div>

This is one site which I am looking at and not really getting it:

> <https://stackoverflow.com/questions/3967344/background-image-in-img-element>

It seems to have the answer in there ...... "somewhere". But not in a way I can understand.

This link looks even better and SEEMS to do what I want:  
[https://www.w3schools.com/cssref/tryit.asp?filename=trycss\_background-image](https://www.w3schools.com/cssref/tryit.asp?filename=trycss_background-image)

But when I do that, it isn't that "group" which has the picture applied, it is the rest of the page.  
Being that I put this in the node:

```auto
<style>
body {
    background-image: url("/Pictures/metal_1.jpg");
}
</style>

```

I really seem to be missing something.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 13:31 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/13 "2018-06-30T13:31:57Z")

</div>

To put what I have been trying out there, this is it:

 ![Screenshot%20from%202018-06-30%2023-27-23](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/fb518b590de298bd7b279d68f174425f6b518a4d.png)  
 ![Screenshot%20from%202018-06-30%2023-27-30](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/0b74493d3d0816933a321806ee429bdc244cad31.png)

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [30 June 2018 14:32 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/14 "2018-06-30T14:32:57Z")

</div>

The CSS you have is setting the background image of the `body` element. A page has exactly one `body` and is the element that contains everything else.

To set the background of just one element, you need to change the CSS selector used to identify what element the background-image style should be applied to.  
From the screenshot you posted earlier, I _think_ you can use:

```auto
<style>
#Master_Control_Buttons {
    background-image: url("/Pictures/metal_1.jpg");
}
</style>

```

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [30 June 2018 22:45 UTC](https://discourse.nodered.org/t/still-searching-for-dashboard-colour-adjustment-on-this-part/1197/15 "2018-06-30T22:45:23Z")

</div>

Thank you very very much.

I maybe should have worked that out. But I know I shouldn’t “oversell myself” on what I can do. Though sometimes I do get things right.

Taking on board what you said there: If the page has a lot of elements, it is going to be a lot of lines putting the image in them too. No worries. That is how it is.

And now another dumb-ish question:  
There is the page - or body.  
An area which has (in my example) buttons is an element.

So in the case it was Master\_Control\_Buttons.  
Master\_Control is the body and Buttons the element.

Now I need to find out the word/term for the actual buttons.  
Or a way to make their background transparent.

I’ve got a bit of work to do with the pages I have and I shall try to do that last bit myself.  
I think the “problem” is knowing the names for the parts.

Anyway, I’ll stop waffling on.
