0

I think this is where problem is

  document.getElementsByClassName("content-area").style.postion = "relative";
  document.getElementsByClassName("content-area").style.overflow-y = "hidden";
1
  • overflow-x:hidden; try that Commented Mar 24, 2019 at 15:11

1 Answer 1

1

You cant use style.overflow-y .. below code will work. More info

document.getElementsByClassName("content-area").style.overflowY = "hidden";
Sign up to request clarification or add additional context in comments.

1 Comment

sorry I made mistake in writing the code in question. but overflowY and even plain overflow="hidden" doesn't work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.