Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6076069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:33:56+00:00 2026-05-23T10:33:56+00:00

I have css on my page’s body and I would like to overwrite overflow:

  • 0

I have css on my page’s body and I would like to overwrite overflow: visible !important;. I have tried the jQuery script below, but that doesn’t do it”

 jQuery("body, #s4-workspace").css("overflow", "hidden !important");

CSS:

body, #s4-workspace {
    overflow: visible !important;
}

body {
    height: 100%;
    overflow: hidden; //overriden
    width: 100%;
}

I know there are two overflow already, but sadly I don’t have the hand on that, otherwise it would be too easy, wouldn’t it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:33:57+00:00Added an answer on May 23, 2026 at 10:33 am

    As mentioned, ! important is not handled well by jQuery’s css().

    Here is a hack that will work if you don’t mind overwriting the inline style attribute value (if it exists):

     jQuery("body, #s4-workspace")
         .attr("style", "overflow:hidden !important");
    

    Like I said, it’s a hack – but give it a try.

    Demo: http://jsfiddle.net/dGbaD/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 css files in my page: Site.css jquery-ui.css Site.css is listed BELOW
Suppose I have the following CSS rule in my page: body { font-family: Calibri,
i have a php page it have css script. i want to put menubar
I have a (php/html/jquery/css) page where i'm displaying tags at the top (e.g. green,
i have several CSS styles i would need to include in the JSP page,
I have a CSS stylesheet defined in the Master Page of my project. On
Is it possible to have 3-4 CSS on a page, and then on any
I have an ASP.net master page. In this master, I have all my css
I have a page (page1.html) which references a css file (style1.css) All is good.
I have seen a web page source code containing the following css declaration at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.