# ZoomMtg is overwriting all css in my entire ReactJS website

**URL:** <https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360>\
**Category:** Web\
**Created:** [May 6, 2020, 7:29am UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360 "2020-05-06T07:29:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jude.niroshan11](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jude.niroshan11/32/6632_2.png) [@jude.niroshan11](https://devforum.zoom.us/u/jude.niroshan11)\
**Post date:** [May 6, 2020, 7:29am UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/1 "2020-05-06T07:29:09Z")

</div>

**Description**  
I have created a new component class in React to include meeting view. I’m using web-sdk. I could join to a meeting in this particular component view. (e.g: MyMeetingComponent.js)

But all my other pages have become black and no scrolling. I have notice that if I remove this line in my component class my app is working fine but of course MyMeetingComponent will not be able to join a meeting.

`import ZoomMtg from "@zoomus/websdk"`

**Error**  
I do not see any error on the browser. But in my index.html file I see the following tag has been added automatically.

```
<div id="root">
  </div class="App">...</div>
</div>

```

`<div id="zmmtg-root"></div>`

**Which version?**  
1.7.7

**Screenshots**  
If applicable, add screenshots to help explain your problem.

 ![Screenshot 2020-05-06 at 09.28.34](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/ee727da2a9065a6a4665cbf0cea6f6aa7cce141f.png)

---

<div class="post-metadata">

**Author:** ![jude.niroshan11](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jude.niroshan11/32/6632_2.png) [@jude.niroshan11](https://devforum.zoom.us/u/jude.niroshan11)\
**Post date:** [May 6, 2020, 1:02pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/2 "2020-05-06T13:02:43Z")

</div>

@tommy  
I have found this particular post you have explain to the same problem what I have.

> [@Zoom Meeting Custom Ui](https://devforum.zoom.us/t/zoom-meeting-custom-ui/5281/2):
>
> Hey @khanh.nguyen, Yes there is a way to put the Meeting UI into a div. The Zoom Meeting UI is not atcually attached to the body. The css makes it seem that way because of the following styles: #zmmtg-root { width: 100%; height: 100%; position: fixed; top: 0; left: 0; background-color: black; } The Zoom Meeting UI will be rendered in the tag with the zmmtg-root id. You can place this anywhere in your project. You can also customize the css classes that are generated a…

Unfortunately, it is not working for me.

I have created `<div id="zmmtg-root"/>` inside the render() of my component class. But still I do see that there is a div tag being appended at the index.html of my react app.

Then I added the given css into my styles.css file which I kept all my css stylings.  
But it did not resolve the `overflow: hidden;` issue. Also my entire css styles are being messed up. And I’m seeing my entire page black. (only the MeetingComponent view)

Below is my code structure:

my styles.css file

```
html, body {
  overflow: auto;
}

body > #zmmtg-root {
  display: none;
}

#zmmtg-root, .meeting-client, .meeting-client-inner {
  width: 1000px;
  height: 500px;
  position: relative;
}

#wc-footer {
  bottom: auto !important;
  width: 1000px !important;
}

#dialog-join {
  width: 1000px !important;
}

#sv-active-video, .active-main, #sv-active-speaker-view, .main-layout {
  height: 500px !important;
  width: 1000px !important;
}

.suspension-window {
  transform: translate(-444px, 10px) !important;
}

#dialog-invite {
  display: none;
}

```

Below is my component class

```
import React, {Component} from "react"
import {ZoomMtg} from "@zoomus/websdk"
import "@zoomus/websdk/dist/css/bootstrap.css"
import "@zoomus/websdk/dist/css/react-select.css"

import "../../assets/css/bootstrap.min.css"
import "../../assets/css/fontawesome.min.css"
import "../../assets/css/themify-icons.css"
import "../../assets/css/custom.css"
import "../../assets/css/style.css"

class MeetingComponent extends Component {

render() {
return (
      <section className="watch-live">
        <p>some text</p>
        <div id="zmmtg-root"/>
      </section>
    )
}
}

```

---

<div class="post-metadata">

**Author:** ![jude.niroshan11](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jude.niroshan11/32/6632_2.png) [@jude.niroshan11](https://devforum.zoom.us/u/jude.niroshan11)\
**Post date:** [May 6, 2020, 7:40pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/3 "2020-05-06T19:40:02Z")

</div>

The following changes enabled me to get back my application views again. I used `!important` keyword in css.

```
body {
  overflow: auto !important;
}

body > #zmmtg-root {
  display: none !important;
}

#zmmtg-root, .meeting-client, .meeting-client-inner {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

#wc-footer {
  bottom: auto !important;
  width: 100% !important;
}

#dialog-join {
  width: 100% !important;
}

#sv-active-video, .active-main, #sv-active-speaker-view, .main-layout {
  height: 100% !important;
  width: 100% !important;
}

.suspension-window {
  transform: translate(-444px, 10px) !important;
}

```

@tommy Now my problem is, ZoomMtg break my css. It simply override all my `<h>, <p> <font>` etc. It is not practical for me to include `!important` to all my own custom css stylesheets. If I do so, in return it will break zoom web view components. Also I am using external react components which have their css styles as well(e.g: DropDown component). I’m in a SPA application created using create-react-app. Please provide me a viable solution.

---

<div class="post-metadata">

**Author:** ![gabriel.rf0](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gabriel.rf0/32/3438_2.png) [@gabriel.rf0](https://devforum.zoom.us/u/gabriel.rf0)\
**Post date:** [May 11, 2020, 1:55am UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/4 "2020-05-11T01:55:32Z")

</div>

Watching this thread because I’m also looking for a solution to this.  
Also developing a SPA and also getting my CSS broken by the web SDK  
OP if you have figured this out please kindly let me know 🙂

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [May 13, 2020, 7:33pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/5 "2020-05-13T19:33:57Z")

</div>

Hey @gabriel.rf0, @jude.niroshan11,

This is currently how the Web SDK works. You can try adjusting the Web SDK CSS or host the Web SDK on a sub domain / path seperate from your app so it does not break your styling.

We are working on a more customizable Web SDK in the future.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jerry](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jerry/32/7336_2.png) [@jerry](https://devforum.zoom.us/u/jerry)\
**Post date:** [July 23, 2020, 10:40pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/6 "2020-07-23T22:40:59Z")

</div>

Has this been addressed on the latest versions?  
I am having this issue also.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 24, 2020, 7:18pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/7 "2020-07-24T19:18:43Z")

</div>

Hey @jerry,

Not yet, currently the Web SDK is designed to be the whole page.

You can try adjusting the Web SDK CSS or host the Web SDK on a sub domain / path seperate from your app so it does not break your styling.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![spinar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/spinar/32/7765_2.png) [@spinar](https://devforum.zoom.us/u/spinar)\
**Post date:** [August 4, 2020, 2:47pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/8 "2020-08-04T14:47:23Z")

</div>

Hi, Does the WebSDK creates inline styles with JS?  
I’m also encounter this issue when the meeting breaks my styles. I Tried overloading some classes but it’s a lot. could be just a css that the Zoom SDK uses not all bootstrap styles?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 5, 2020, 7:18pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/9 "2020-08-05T19:18:59Z")

</div>

Hey @spinar,

Please see my advice above on how to host the Web SDK without breaking your styling ^

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![spinar](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/spinar/32/7765_2.png) [@spinar](https://devforum.zoom.us/u/spinar)\
**Post date:** [August 5, 2020, 8:00pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/10 "2020-08-05T20:00:46Z")

</div>

> [@tommy](#):
>
> e Web SDK on a sub domain / path seperate from your app so it does not break your styling

Thanks, Yes I separate the meeting part from my App. and now it’s normal.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 6, 2020, 5:26pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/11 "2020-08-06T17:26:20Z")

</div>

Great! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![shipeng\_liu](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@shipeng\_liu](https://devforum.zoom.us/u/shipeng_liu)\
**Post date:** [November 5, 2020, 1:59pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/12 "2020-11-05T13:59:42Z")

</div>

How can find the css style of the zoom sdk, I cannot find the style zmmtg-root with in the local version of sample app? I tried add a new css style to overload the previous style, but it fails when the meeting starts(it turns back to full-screen)

---

<div class="post-metadata">

**Author:** ![shipeng\_liu](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@shipeng\_liu](https://devforum.zoom.us/u/shipeng_liu)\
**Post date:** [November 5, 2020, 2:00pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/13 "2020-11-05T14:00:45Z")

</div>

Could you please tell me how to modify your sample app into a small size window app?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 6, 2020, 6:48pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/14 "2020-11-06T18:48:03Z")

</div>

Hey @shipeng_liu,

The Web SDK does not support custom styling. If you want custom styling, please use the Customizable SDK once it is available:

> **[Web - Fully Customizable SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/custom/web)**
>
> Sessions are not Zoom Meetings; instead, with no default user-interface, this SDK is designed to support unique video applications.
> 
> Getting Started
> 
> ...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![saidoudou](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/saidoudou/32/18811_2.png) [@saidoudou](https://devforum.zoom.us/u/saidoudou)\
**Post date:** [November 19, 2020, 2:27pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/15 "2020-11-19T14:27:14Z")

</div>

Hi @tommy,

I wanted to try a proof of concept with Customizable Zoom SDK, but it seems that “getting started” chapter forwards always to a form where information should be entered which is. anyway associated with my account, and from there I am always taken to apply for a demo or buy.

Under developer account there is nothing to find related to customizable SDK.

This doesn´t work because there is no package in npm with this name.

```auto
npm install @zoomus/instantsdk --save

```

Is there any working instructions to try the new SDK?

Thanks,  
Said

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 23, 2020, 6:29pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/16 "2020-11-23T18:29:39Z")

</div>

Hey @saidoudou,

Checkout my post here:

> [@When will the Fully Customizable SDK be available?](https://devforum.zoom.us/t/will-anyone-ever-get-back-to-me/36207/3):
>
> Hey @alexmayo, @carlo_m, We apologize for the wait as our ISV Team works to approve each [request](https://zoom.us/fully-customizable-sdk#zoom-form-contact-section) for the Fully Customizable SDK. EDIT: That being said, starting in January March the Fully Customizable SDK will be self service, so you will have immediate access. slight_smile Thanks, Tommy

For additional Fully Customizable Web SDK questions, please post them here: #fully-customizable-web-sdk

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![saidoudou](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/saidoudou/32/18811_2.png) [@saidoudou](https://devforum.zoom.us/u/saidoudou)\
**Post date:** [November 23, 2020, 8:00pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/17 "2020-11-23T20:00:57Z")

</div>

hi @tommy

thank you very much for your reply.

Said

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 24, 2020, 9:40pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/18 "2020-11-24T21:40:32Z")

</div>

You are welcome! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![basponcollege](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/basponcollege/32/26457_2.png) [@basponcollege](https://devforum.zoom.us/u/basponcollege)\
**Post date:** [April 28, 2021, 2:17pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/19 "2021-04-28T14:17:48Z")

</div>

error to screen share in my zoom application using reactjs

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 29, 2021, 9:04pm UTC](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360/20 "2021-04-29T21:04:07Z")

</div>

Hey @basponcollege,

Thank you for reaching out to the Zoom Developer Forum. Please submit a new forum topic and fill out the post template so that we have enough information to assist.

Thanks,  
Max

[Next page](https://devforum.zoom.us/t/zoommtg-is-overwriting-all-css-in-my-entire-reactjs-website/16360.md?page=2)
