Show Data on the Right-hand Side

Objective:
Arrange the component names in two columns - left and right, with different objects like input textboxes based on a browser width of 981px. The desired layout is showcased in this link "https://jsfiddle.net/2w9kskr2/".

Challenge:
After implementing the solution "@@media screen and (min-width: 981px) {" (https://jsfiddle.net/jdvdpwwj/), the outcome does not match the expected presentation as described in the goal (https://jsfiddle.net/2w9kskr2/).

Information:
The Bootstrap version being used is v2.

    .div-table{
      display:table;         
      width:auto;         

      border-spacing:5px;/*cellspacing:poor IE support for  this*/
    }
    .div-table-row{
      display:table-row;
      width:auto;
      clear:both;
    }
    .div-table-col{
      float:left;/*fix for  buggy browsers*/
      display:table-column;         
      width:150px;         
    }

    .div-table-col2{
      float:left;/*fix for  buggy browsers*/
      display:table-column;         
      width:415px;         
    }


    #A, #Text, #From, #T {
            width: 421px;         
    }
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" />


        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/2.3.2/js/bootstrap.min.js"></script>


<div class="div-table">

  <div class="div-table-row">
    <div class="div-table-col">
      <label for="A">A</label>
    </div>
    <div class="div-table-col2">
      <input id="A" name="A" placeholder="A" value="" type="text">
    </div>
  </div>
  <div class="div-table-row">
    <div class="div-table-col">
      <label for="T">T</label>
    </div>
    <div class="div-table-col2">
      <input id="T" name="T" placeholder="T" value="" type="text">
    </div>
  </div>
  <div class="divRow">
    <div class="div-table-col">
      From
          <br/>

    </div>
    <div class="div-table-col2">
      
      <button id="From" style="margin-bottom:10px;" title="122344" data-id="From" type="button" class="btn dropdown-toggle form-control selectpicker btn-default" data-toggle="dropdown"><span class="filter-option pull-left">122344</span>&nbsp;<span class="caret"></span></button>
      
      <br/>
    </div>
  </div>

  <div class="divRow">
    <div class="div-table-col">DD & DD</div>
    <div class="div-table-col2">
      
      <select id="SSS" style="max-width: 200px;"></select>
      
      
      <select id="SSS" style="max-width: 200px;"></select>
   
      
    </div>  
  </div>  

  
    <div class="div-table-col">
      <label for="AWB">Message </label>    
    </div>
    <div class="div-table-col2">  
      <textarea name="Text" id="Text" cols="10" rows="10" class="input-large">
      </textarea>
    </div>    
    
    
  
  </div>
  

Answer №1

Find the solution right here https://codepen.io/abc123/pen/qwerty67/

.table-row{
      display:block;
      width:100%;
      float:left;
    }
    .table-col{
      float:left;
      display:block;      
      width:25%;         
    }
    .table-col2{
      float:left;
      display:block;         
      width:75%;         
    }
    .table-col2 input,.table-col2 button,.table-col2 textarea {
      width:100% !important;
    }

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

Unraveling JSON data within an AngularJS controller

I'm facing an issue with exposing a field in my AngularJS controller. The problem arises when a JSON 'owner' object is returned by a webservice, containing a field named 'Cave'. If this 'Cave' field has a null, empty, or ...

What are the steps to creating a barcode scanner using JavaScript and a camera?

Hey there! I'm new to processing JavaScript and jQuery, so I could really use your expertise. My goal is to create a barcode reader using my phone's camera. So far, I've attempted the following: <video id="video" width="640" height=" ...

Discover the magic of gradients in tooltips with Bootstrap 5!

I recently encountered some challenges when attempting to apply a gradient color to bootstrap 5 tooltips CSS: .tooltip .tooltip-arrow::before { position: absolute; content: ""; border-color: transparent; border-style: solid; } .bs-toolt ...

Strategies for integrating user data into Vue components within Laravel

I've successfully logged my user data in the console, but when I try to display the data on Contalist page, nothing is returned. I'm new to using Vue and need help implementing it into my projects. Below are my PHP controller and Vue component fi ...

Internet Explorer is having issues displaying CSS text accurately, particularly in relation to the background-

Having an issue with Internet Explorer not displaying my background clipped text correctly. In other browsers like Chrome and Firefox, the code renders fine: https://i.stack.imgur.com/x9lio.png However, in IE it appears differently: Your code: HTML: & ...

The Power of Jquery's load() Function for Loading Text

Is there a way to show the content of file.txt along with any text on the <title id="mytitle"></title> tag? $(window).on('load', function() { $("#mytitle").load("/file.txt"); }); The content of file ...

What exactly does a 'hoisted manifest' mean when it comes to using Yarn?

Encountering an issue while attempting to install a package using yarn, I am receiving the error message: expected hoisted manifest for \"myPackage#@material-ui/core#react-dom\" However, the concept of a 'hoisted manifest' is not entir ...

Struggling with responsive design and the challenges of absolute positioning

Currently in the process of creating a page for case studies, where a main banner image is followed by 3 rows of 3 sub-images. Each image is added through the background-image property to maintain consistent div heights. The divs have a hover container on ...

Looking to create cascading dropdown options

I am working on a form that includes 3 dropdowns with the same options listed below: <select id="one"> <option value="1">Select</option> <option value="1">One</option> <option value="2">Two</option> <option val ...

Selenium Webdriver failing to select menuitem using text, xpath, or ID

Currently, I have some HTML code embedded in a SharePoint page that appears as follows: <span style="display:none"> <menu type='ServerMenu' id="zz28_RptControls" largeIconMode="true"> <ie:menuitem id="zz29_AddColumn" type="optio ...

When implementing variables from input boxes, my SQL query fails to populate any data in the database table

I have been using phpMyAdmin to store test data. As I try to insert data from a form, I encounter an issue where no data gets inserted when using variables in the SQL query. Being new to coding, I am struggling to find a solution to this problem. Additiona ...

What is the reason for the retrieval of jquery-3.5.1.min.js through the request.params.id expression?

For my school project, I am using Express.js with TypeScript to create a simple app. This router is used for the edit page of a contact list we are developing. It displays the ID of the current contact being edited in the search bar. The problem arises whe ...

Jquery Parallax causing scrolling problems across different browsers

Could you please take a look at the following link in both Chrome and Firefox? I am encountering some unusual issues. Primary Concern The scrolling function works smoothly in Firefox, but it seems to be malfunctioning in Chrome. Secondary Problem Whe ...

Modify the background hue of a personalized WordPress HTML block using supplementary CSS styling

My current challenge involves modifying the background color of a specific custom HTML WordPress block. However, when I make changes to one block, it affects the background color of all other custom HTML blocks on different pages. Here is the CSS code I a ...

Tips for Positioning Content in the Center of a Bootstrap Div

I'm struggling to center the jackpot-item-container div within a chart. Can anyone help me figure this out? Check out my code on CodePen. <div id="jackpot-container" class="col-sm-12"> <div id="jackpot-item-container"> <span id= ...

timer-based user session expiration

Currently, the app I'm developing has a system where a session is created with a 15-minute expiration time once a user interacts with a form. This session is managed server-side. If the user remains idle for 15 minutes, the server returns a 404 erro ...

Why is "undefined" being used to alert an ajax call response?

I am encountering an issue with a returned value from an AJAX request. The web method being referenced returns a boolean value of true or false. However, when attempting to access this value outside the AJAX method, I am receiving an "undefined" message :? ...

Enhancing Layouts with Bootstrap 5: Implementing Space Between Rows

Can anyone help me figure out how to add a vertical gutter between two rows with Bootstrap 5? I've tried using g-* and gy-*, but as shown in this jsfiddle, it doesn't seem to be working. Any ideas on what might be causing this issue? From my und ...

How can I specifically refresh certain portions of my custom Module in Magento using a combination of JQuery and Ajax, without reloading the entire block?

I have been tasked with creating a simple Product configurator for our Magento Template within a tight deadline of 5 days. The configurator should allow users to choose attributes, calculate the price based on their selections, display a new image seamless ...

Using Bootstrap to align items to the right in a navigation bar

I've been attempting to align certain elements to the right in the navbar using Bootstrap by utilizing mr-auto, but it doesn't seem to be functioning properly. What steps should I take to ensure it works correctly? Below is a snippet of my index. ...