0

I didn't apply any inline style on my <body> element. But when I inspect the DOM, it shows <body cz-shortcut-listen="true" style="margin-bottom: 18px;">.

I tried to apply inline style on my body element and set margin-bottom to 0, but it doesn't work.

Chloe
  • 1
  • 2
  • Can you show an example of when it doesn't respect? Because, there's a User Agent StyleSheet and you need to reset it using your CSS. – Praveen Kumar Purushothaman Jan 31 '20 at 15:40
  • That sounds like an extension. Can you disable your browser extensions and trying again? – Gershom Maes Jan 31 '20 at 15:40
  • 1
    @Gershom You're right! After I disabled "Auto Replay for YouTube" extension, the bottom margin disappears. I have a background video on my site and I think that's why it adds a bottom margin. Thank you very much. – Chloe Jan 31 '20 at 15:50

1 Answers1

-1

Just use this to set all margin to 0

*{margin: 0;}
Derek
  • 155
  • 1
  • 1
  • 5