# Apply border CSS to one page

**URL:** <https://discourse.nodered.org/t/apply-border-css-to-one-page/51287>\
**Category:** Dashboard\
**Created:** [20 September 2021 12:26 UTC](https://discourse.nodered.org/t/apply-border-css-to-one-page/51287 "2021-09-20T12:26:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirhc](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Post date:** [20 September 2021 12:26 UTC](https://discourse.nodered.org/t/apply-border-css-to-one-page/51287/1 "2021-09-20T12:26:58Z")

</div>

Hello

I currently have a template node with the following code:

.nr-dashboard-theme ui-card-panel {  
background: transparent;  
border:none;  
}

I want to maintain a border around some of my gauges on different tabs. Is there a way to make this only apply to one tab?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [20 September 2021 13:38 UTC](https://discourse.nodered.org/t/apply-border-css-to-one-page/51287/2 "2021-09-20T13:38:50Z")

</div>

If you make the template type "widget in group" it should only apply the css to the tab the template is on.

I tried it with this in the template - not sure if this css selector is any better than yours:

```auto
<style>
  #nr-dashboard .masonry-container ui-card-panel {
    background: transparent ;
    border:3px solid red;
}
</style>

```

And if you want to apply it to just one dashboard group

```auto
<style>
  #nr-dashboard .masonry-container ui-card-panel#TABNAME_GROUPNAME {
    background: transparent ;
    border:3px solid red;
}
</style>

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 October 2021 13:39 UTC](https://discourse.nodered.org/t/apply-border-css-to-one-page/51287/3 "2021-10-20T13:39:44Z")

</div>

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