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 9130929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:03:16+00:00 2026-06-17T08:03:16+00:00

When I load a page, there is a style attribute that has been added

  • 0

When I load a page, there is a style attribute that has been added to the <body> tag that is not there in my templates. How do I discover what javascript has modified it?

Just to be clear, the body tag is now:

<body class="home page" style="margin-top: -43px;">

So the style is not coming from a style sheet. While the template does not include the “style=” bit at all. So I’m pretty sure that some running javascript is modifying the body tag.

I have both Firefox/Firebug and Chrome Inspector available to me. I have tried right clicking on the body tag in “HTML”/”Elements” view and choosing “break on attributes modification” but the change has happened by the time I can do that, and the break point does not survive a page reload.

I’m using Django and jQuery in case that alters the answer.

  • 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-06-17T08:03:17+00:00Added an answer on June 17, 2026 at 8:03 am

    There is the possibility it is added server side too. If you search your source files for the stylesheet name it should appear in either a JavaScript or a Python file. i.e. grep for “mystylefile.css”

    You could disable JavaScript and see if it is still added if you want to narrow it down.

    Update

    Finding what added the margin-top to the element will be harder! You could search your JavaScript files for “margin-top” and see how many results you get back – or add the JavaScript files one by one until one causes it to be added.

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

Sidebar

Related Questions

There's placeholder on the page that is loaded asynchronously using jQuery load method. Page
This blog post (slightly annoying page there) (and that's not my blog by the
Is there a way to have lightbox on page load?? Say like when the
Is there any possible way to PLAY a you tube video on page load
I load a web page by using WebView in my app and there are
How can I load TinyMCE on full page directly ? There is a full
I specifically want to add the style of background-color to the <body> tag of
In a page there is a div (#example_div) that toggles a class when click
i have some javascript in the head of a page that controls an image
I have a C# webbrowser that holds an html page that has several iframes.

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.