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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:18:30+00:00 2026-06-08T22:18:30+00:00

Ok I have a draggable div #reportBox_1. When I drag this div, its width

  • 0

Ok I have a draggable div #reportBox_1. When I drag this div, its width is increased to about 3X its original width. Now this #reportBox_1 has a width of 29%, but it seems that the expansion is getting inherited from two levels up, from the #wrapper style.

This is actually part of a much bigger page, but cutting code down to narrow down to the problem, I noticed that this problem only occurs when I have a strict DOCTYPE definition. Below is the same code I’m using. If I remove the DOCTYPE definition, the drag width problem is resolved.

Now I would like to keep this strict DOCTYPE definition since removing it for some reason IE9 will no longer display my round borders when using the style “border-radius”, but I guess this is another question.

Now this draggable width expansion problem occurs in both IE8 and IE9. Can someone please help on this. I’m new to jQuery. Below is my code:

UPDATE: when I put my whole page back to normal and removed the DOCTYPE definition, problem was still occuring. I then removed the definition tag and it now worked. Below is meta definition I was using.

   <meta http-equiv="X-UA-Compatible" content="IE=edge" />

Not sure why this causes problems in jQuery draggable, but it seems that is a combination of both the DOCTYPE and meta tag that are causing the problem.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>

<style type="text/css">
body{
    height:800px;
    background-color: #CCCCCC;
    overflow: auto;
}

.mainWrapper{
    width: 1300px;
    height: 800px;
}  


.directoryContainer{
    width: 40%;
    height: 800px;
    background-color: #CCCC33;
    float: left;
} 


.preSelectedReportDisplayBox{
    float: left;
    height: 120px;
    width: 29%;
    background-image: url(picts/reports/report_display_box.jpg);
    text-align: center;
    margin-left: 21px;
    padding-top: 20px;
    border: 1px solid;
    border-color: #3399FF;
}



</style>  


<link type="text/css" href="scripts/jqueryui_1.8/css/ui-lightness/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />  
<script type="text/javascript" src="scripts/jqueryui_1.8/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/jqueryui_1.8/js/jquery-ui-1.8.21.custom.min.js"></script>


<script type="text/javascript">

    function initialize(){
        makeReportsDraggable(); 
    }   


    function makeReportsDraggable(){

            $('#reportBox_1').draggable({
                helper: 'clone'
            });

    }

</script>   

</head> 
<body onload="initialize()">

    <div id="wrapper" class="mainWrapper">
        <div id="directoryContainer" class="directoryContainer">



                    <div id="reportBox_1"  class="preSelectedReportDisplayBox">

                      Box1

                    </div>


        </div>              




    </div>

</body>
</html>
  • 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-08T22:18:32+00:00Added an answer on June 8, 2026 at 10:18 pm

    The parent DIV was a percentage width, like 30%. I just change the width to pixels. Not sure if my DIV design was messed up but setting it to a fixed size fixed the problem. I guess this will work for me for now… The DOCTYPE and meta tag stuff were not changed.

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

Sidebar

Related Questions

I have a draggable div element with a hover style. This works fine, but
I have a very big draggable div in my window. This div has a
I have a draggable div element that uses HTML 5 localStorage to remember its
So I have divs like this on my page: <div class=drag></div> And this jquery
I have a form within a draggable() div. The form simply looks like this:
I have div with draggable , resizable and editable (contenteditable=true) functionality. This div contain
I have jquery draggable attached to a DIV container, each of its child elements
In my case, i have some div and img tags. I am applying draggable
suppose I have a panel with draggable element, and a droppable container,when I drag
I have a draggable object (div), and some droppable ones (table TD's). I want

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.