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

  • Home
  • SEARCH
  • 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 7798065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:53:20+00:00 2026-06-01T23:53:20+00:00

I have following code <!DOCTYPE html> <html> <head> <title>jQuery goes to DOM-ville</title> <style> #change-me

  • 0

I have following code

<!DOCTYPE html>
<html>
<head>
    <title>jQuery goes to DOM-ville</title>
    <style>

        #change-me {
            position:absolute;
            top:500px;
            left:400px;
            font:24px arial;
        }

        #move_up #move_down #color #disappear {
            padding:5px;
        }

    </style>
    <script src="jquery-1.6.2.js"></script>
</head>
<body>
    <button id="move_up">Move Up</button>
    <button id="move_down">Move Down</button>
    <button id="color">Change Color</button>
    <button id="disappear">Disappear/Re-appear</button>

    <div id="change_me">Make me do stuff</div>
    <script>
        $(document).ready(function(){
            $("#move_up").click(function(){
                $("#change_me").animate({top:30}, 200);
            });//end move up
            $("#move_down").click(function(){
                $("#change_me").animate({top:500}, 2000);
            });//end move down
            $("#color").click(function(){
                $("#change_me").css("color","purple");
            });//end color
            $("#disappear").click(function(){
                $("#change_me").toggle("show");
            });//end disappear
        });//end doc ready
    </script>


</body>
</html>

when I open html in firefox(jquery file is in the same folder), the style rules for element showed by firebug is nil, and move up and move down buttons don’t work however they change the respective css styles, when I changed following line

<div id="change_me">Make me do stuff</div>

to this

<div id="change_me" style="position:absolute;">Make me do stuff</div>

everything seems to work again, so my assumption is the any of styles in head element are not applied to the html element, if so what is the point of them and if they are applied then why are they overwritten.

my browser is Firefox 11.0 in MacOSX

  • 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-01T23:53:21+00:00Added an answer on June 1, 2026 at 11:53 pm
    change-me
    

    vs

    change_me
    

    The two are not the same.

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

Sidebar

Related Questions

I have the following html: <!DOCTYPE html> <html> <head> <script src=http://code.jquery.com/jquery-latest.js></script> </head> <body> <span>not
I have the following code: <!DOCTYPE html> <html lang=tr> <head> <meta charset=utf-8> <title>Bootstrap</title> <!--
I have the following code: <!DOCTYPE html> <html> <head> <script src=http://code.jquery.com/jquery-latest.min.js></script> <meta name=viewport content=initial-scale=1.0,
I have the following code : <!DOCTYPE html> <html> <head> <script src=http://code.jquery.com/jquery-latest.js></script> </head> <body>
I have the following html and css code: <!DOCTYPE HTML> <html> <head> </head> <body>
In the master page I have the following code: <!DOCTYPE html> <html> <head> <meta
I have the following code: <!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd> <html> <head>
I have the following code: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html
I have the following code: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> <html
I have the following code. <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd> <html>

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.