cssgoogle-translategoogle-translator-toolkit

How to disable google translator plug in and set margin-top: to 0px for body element?


I'm currently use Google Translator plug in for my website

I have alaready

    .goog-te-banner-frame{
    visibility:hidden !important;

CSS property to disable Google translate bar on top.

But Google Translator has set margin-top:40px to body html tage as below code

  <body style="margin: 0px; padding: 0px; position: relative; min-height: 100%; top: 40px;">

So my website have 40px of top margin that make my website wrong with my default layout.

Please How can I set CSS or Javascript to modify my top margin to 0px;

Please help


Solution

  • Try this in your CSS:

    body {
      top:0 !important;
    }