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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:08:45+00:00 2026-06-15T02:08:45+00:00

I have a webpage which worked well until I added the following HTML and

  • 0

I have a webpage which worked well until I added the following HTML and CSS around it:

HTML:

<div class="content">
    <div class="inner_content">
        <!-- old HTML within these 2 div tags worked find before adding these 2 new div tags -->
    </div>
</div>

CSS:

.content
{
    background:#BBBBBB;
}

.inner_content
{
    width:993px;
    margin:auto;
    padding:10px 0px 0px 10px;
    background:#AAAAAA;
}

Strange effect:

You can see the “strange effect” happening in this jsfiddle.

If you click any div which contains a (c), you will notice a little dropdown appear. If you then attempt to move a widget by dragging the header of the widget, watch what happens to the dropdown that appeared by clicking the (c)

This didn’t happen before I added the above HTML and CSS.

Screenshots:

Here are some screenshots to show the problem:

Dropdown looks fine here:
enter image description here
Click to enlarge.

Moving widget with dropdown enabled with old HTML, dropdown moves correctly with widget:
enter image description here
Click to enlarge.

Moving widget with dropdown enabled with new divs/css added, dropwdown moves incorrectly with widget:
enter image description here
Click to enlarge.

Question:

Is there a way to correct it without losing the effect the HTML and CSS adds to the page, without causing the dropdown to do strange things?

  • 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-15T02:08:48+00:00Added an answer on June 15, 2026 at 2:08 am

    When you start dragging the .widget, jQuery-UI adds a style of position: absolute; to that .widget element which is removed when dragging stops. That’s what’s causing the dropdown to jump position.

    To fix, add position: relative; (position: absolute; will also work) to the styles for .widget and re-evaluate your positioning arithmetic. I would suggest:

    $dd.css({
        top: $nav3.outerHeight()+10,
        right: 10
    });
    

    You may need to increase the z-index of .dropdown as well.

    http://jsfiddle.net/mblase75/RrpGr/14/

    There are many other optimizations that can be done, but this should be sufficient to solve your problem.

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

Sidebar

Related Questions

I have content on a webpage which is both sent from the server at
I have a webpage with a form, which looks kinda like this: @using (Html.BeginForm(MyAction,
I have a webpage with two radiobuttons and a dropdownlist as follows: <div class=sectionheader>Course
I have an webpage which posts some data and then redirects to a page
Here's the situation I have a webpage which has one drop down called prefer.
I have a WebPage on which I have to detect and prevent usage of
I have created a Webpage which will post as post method..not as get method.
I have an image on a webpage which is being dynamically generated by a
I have a webpage, on which I am using Ajax to replace different divs
hello all i am working on a project in which i have a webpage

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.