# How to add border to ViewPort?

**URL:** https://discourse.vtk.org/t/how-to-add-border-to-viewport/6049
**Category:** Web
**Created:** [June 23, 2021, 5:01pm UTC](https://discourse.vtk.org/t/how-to-add-border-to-viewport/6049 "2021-06-23T17:01:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shrikant](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@shrikant](https://discourse.vtk.org/u/shrikant)
#### Post date: [June 23, 2021, 5:01pm UTC](https://discourse.vtk.org/t/how-to-add-border-to-viewport/6049/1 "2021-06-23T17:01:28Z")

</div>

Hi, I have added two new view port to render window. I would like to add borders to new view port.  
Can someone help me? I was thinking to lines and make border but if there is any straight forward method?

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [June 23, 2021, 5:10pm UTC](https://discourse.vtk.org/t/how-to-add-border-to-viewport/6049/2 "2021-06-23T17:10:54Z")

</div>

You can probably set a background color on your HTML element that contains your RW. Then by setting a background in each of your renderer, the html/bg would act as a border.
