csslimit overflow display only left side

I am struggling to implement a drag and drop feature resembling a shopping cart. Unfortunately, the content within the box is concealing the div I want to drag when moving out of the box. Is there a method to display only the content on the left side?

Check out the current demo:

The jQuery custom scrollbar by malihu can be found at:

Upon inspecting the JavaScript file, I realized that the code causing this issue resides in it. The specific line responsible for the change can be located here: :

Potential solution: Perhaps generating a "clone" on-click could allow the dragged item to escape the box. Alternatively, restricting the visible area to just the left side may require modifying the JavaScript.

Your insights on this matter would be greatly valued.

The snippet below showcases my code (note that the target div is named "content2")

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
    <style>
      #fileEm {
        visibility: hidden;
        width: 0;
        height: 0;
      }
      
      /* Styles omitted for brevity */
      
    </style>
  
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

    <script src="scroll/jquery.mCustomScrollbar.concat.min.js"></script>
    
    <!-- Additional scripts -->
    
</head>

<body>
  <form action="" method="post" enctype="multipart/form-data">
    <table width="777" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">
          <div class="rightUpload">
            <div class="catBox" id="name">
              <div class="spacer" id="name"></div>
              <div class="catItems" id="name">
                <!-- Category items here -->
              </div>
            </div>
            
            <div class="catHolder">
              <div id="content_1" class="content2">
                <!-- Categories shown here -->
              </div>
            </div>
            
          </div>
        </td>
      </tr>
      <tr>
        <td></td>
      </tr>
    </table>
  </form>
</body>
</html>

Answer №1

When dragging the items, keep in mind that they are still within the container with overflow set to hidden. To ensure proper visibility while dragging, consider adding the following:

#mCSB_1 {
    overflow: visible;
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to transform URL images on a webpage into media library images in WordPress?

Having trouble converting HTML Static Sites to WordPress because images are hosted through HTML SRC Code. After conversion, no one can see the images in visual format on pages during editing. Is there a way to convert all image links inside pages to media ...

The jQuery mouseout functionality seems to be malfunctioning and not responding as expected

I am currently developing a slider that displays details when the mouse hovers over the logo, and hides the details when the mouse moves away from the parent div. jQuery('.st_inner img').mouseover(function() { jQuery(this).parent().siblings( ...

Transforming the file name in real time while uploading with jQuery uploadify

Currently, I am using uploadify, which is a jQuery plugin, to facilitate the uploading of files while adding clients to my database. One challenge I encountered was attaching files to new clients who have not yet been added to the database. To address thi ...

Enabling the submit button only when text is entered in the text fields using jQuery

I have a script that automatically submits a form when two textfields are filled using variables from local storage. The script checks if the variables for email and password are not null before submitting. if (localEmail != null && localPwd != null) { ...

Side by side CSS list item with before element

Currently, I am working on displaying a list of 3 items where the list item number is larger than the actual text. I have been successful in achieving this part, but now my goal is to place them side by side. This is the code snippet I have implemented: ...

Scrollable panel feature in Flexbox

I am attempting to create a design that expands to fill the screen, but allows for scrolling when the content exceeds the available space. My current approach using basic flexbox, as suggested in this answer, successfully fills the screen. However, overfl ...

How come the method $.when().pipe().then() is functioning properly while $.when().then().then() is not working as expected

I'm still grappling with the concept of using JQuery's Deferred objects, and am faced with a puzzling issue. In this code snippet, my attempt to chain deferred.then() was unsuccessful as all three functions executed simultaneously. It wasn't ...

Unable to transform Table layout into DIVs

My form for data input consists of labels with inputs, but the labels are localized so I am not sure about the length of text for different languages. To tackle this issue, I initially used a table layout: <table> <tr> <td> ...

Having trouble getting my local website to load the CSS stylesheet through Express and Node.js in my browser

https://i.stack.imgur.com/qpsQI.png https://i.stack.imgur.com/l3wAJ.png Here is the app.js screenshot: https://i.stack.imgur.com/l3wAJ.png I have experimented with different combinations of href and express.static(""); addresses. However, I am ...

Adding Numerous Elements to a Container

In my HTML code, there is a div element with the id of controls. I am attempting to add a div containing 2 input fields using this method: this.controls = controlBtns .append('div') .classed({'time-container': true}) .appe ...

Do AJAX forms require the use of a submit input?

Is it essential to include a submit input in my AJAX forms, given that: 1-)The forms are designed to function with AJAX, meaning users without JavaScript won't be able to use my app ...

Filling out the form will automatically direct you to the text input section

I'm trying to figure out if I can create an input box in HTML that directs the user to a specific HTML file based on the word they enter. For example, if they type "Doctor", it would redirect them to the page doctor.html. This is for a school project ...

A guide on sorting JSON data with Javascript/jquery

I have a set of JSON data: {"X1":"3","X2":"34","Y1":"23","Y2":"23","Z1":"234","Z2":"43",...} My goal is to rearrange and group this data as follows: var newDataJson1 = { "X":{"X1":"3","X2":34}, "Y":{"Y1":"23","Y2":"23"}, ... } ALSO, I want to stru ...

What is the best way to center a Div element without it scrolling?

Can someone assist me in resolving this problem? I am struggling to design a webpage with two images inside a div, centered on the screen. Currently, it is centered but I do not want it to be scrollable. My goal is to display the full image without needing ...

Arranging numerous Text elements within a solitary Drag and Drop container with the z-index property

I am facing a challenge with stacking twelve arguments in no particular order on a drag and drop element. The texts overlap each other, making it difficult for the end user to see them clearly when dragging and dropping. Is there a way to stack texts using ...

Executing a function in jQuery by including a variable

I am trying to make an Ajax call to the server using jQuery's .get method. Here is the code I am using: $.get("InfoRetrieve", { },addContent(data)); The goal is to retrieve data from the server and pass it to a function called addContent. This is ...

What is the method to show text on hover in angularjs?

I'm a beginner in AngularJS and I'm looking to show {{Project.inrtcvalue}} when the mouse hovers over values. Can anyone guide me on how to achieve this using AngularJS? <table ng-table="tableParams" show-filter="true" class="table" > ...

The JQuery category filtering feature malfunctions when a category consists of more than two words

Utilizing Jquery, I have implemented a feature that displays project categories and allows users to filter projects based on the selected category. To view the code pen for this implementation, please click here: https://codepen.io/saintasia/pen/dzqZov H ...

Using jquery's next() function to bypass a label

I am facing an issue with a function that populates a second field based on the values in the first field. The problem arises when there is a label associated with the field, as the label becomes the next() element. As a result: function buildoptions( ...

Tips for concealing the loader once all pages have been loaded

Within the context of my website development project at , I am utilizing a script for infinite scrolling to consolidate multiple pages into one seamless scrolling experience. I am seeking a solution to hide the loader (the spinning icon) when no additiona ...