1

I have problem with "auto" padding-top on my site, I want to get rid of the space between menu and video (like on the second print-screen - I have edited padding-top via Chrome browser to 0px). Moving up element with CSS margin-top: -80px is not working.

http://i.stack.imgur.com/N1Oeg.jpg

I wrote simple script:

document.getElementById("page-container").style.padding = "0px 0px 0px 0px";

Result: http://i.stack.imgur.com/Tl0OB.jpg

It is still "auto" padding-top.

Any tips?

Captain Obvlious
  • 18,485
  • 5
  • 36
  • 70

1 Answers1

2

Divi sets new inline padding when scrolling.

If you're sure this is the element you want with 0 padding then you can override inline style with css:

#page-container {
padding: 0 !important;
}
yezzz
  • 2,820
  • 1
  • 7
  • 18