khawarPK
khawarPK

Reputation: 2217

overflow hidden adding in body tag which remove the scrollbar

i don't know why but due to some ad code or any other reasons, overflow hidden is adding in main body which remove the scroll bar from the page.

<body style="margin: 0; overflow: hidden">

How i can prevent this or how we overwrite the overflow:hidden to overflow:auto

Upvotes: 0

Views: 2550

Answers (2)

Billy
Billy

Reputation: 1104

In your CSS:

body {
    overflow:auto !important;
}

This should always overwrite the inline element.

Upvotes: 1

tikider
tikider

Reputation: 550

You can overwrite this using !important;

in your css file:

body {
    overflow: visible !important;
}

Upvotes: 1

Related Questions