Attempting to generate two columns out of a list of divs, with additional white space in the left column

I am attempting to render a series of divs into two columns. However, when viewing the example in this [JSFiddle](http://jsfiddle.net/nb32P/2/) link, I noticed there is extra spacing above Group Heading 4 in the left column that I cannot seem to remove. Is there a way to eliminate this additional space? Unfortunately, it must be compatible with IE8 :-( Thank you!

HTML

<div class="INeedToColumn">
        <div class="groupheader">Group Heading 1</div>
            ...
        </div>
    </div>
            ...
    </div>
</div>

CSS

.INeedToColumn {
      float:left;
      display:inline;
      width:45%;
      margin-right:30px;
      padding-bottom:8px;
      vertical-align:top;
      border-bottom:1px #B0BDC8 solid;
  }
.INeedToLink > div {
      float:left;
      display:inline;
      width:48%;
  }
  .INeedTo_ViewAll {
      width:100%;
      float:right;
      text-align:right;
  }

Answer №1

This is a great example to highlight the positioning: JSFiddle. Notice how heading 3 has shifted to the left? It's important to grasp the concept of float and how divs are arranged.

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 are the steps to resolve issues with my dropdown menu in IE9?

I have a cool CSS built hover-over drop-down menu that I want to add to my website. It works perfectly on all browsers except for IE9. Here is the code and stylesheet I am using: Check out the code and sheet here If anyone has any insights on what might ...

What is the best way to confirm that there is content in at least one element within an HTML string?

I have encountered an issue with a wysiwyg editor that cannot be modified, as it sometimes returns <p></p> which appears as an empty field to the user. Therefore, I need to implement some validation on the back-end of my Java application. The ...

I prefer to have my side navigation bar open on desktop and laptop screens, but closed on mobile devices

I am experiencing an issue with the side navigation menu. Is there a way to have the side nav instantly open on desktop, while remaining closed on mobile phones? I have tried using the "active" class but the side nav stays closed. <!DOCTYPE html> & ...

Utilizing Ajax and Jquery to dynamically adjust CSS properties, dependent on data from a specific MySQL row

I've been working on a system to automatically update a Scene Selection page whenever a new number is added to the permission table in Mysql. The PHP for the login and retrieving the number from the members table is working fine. My issue now lies wi ...

Tips for aligning text in the middle of a customizable and adjustable button with the use of only Bootstrap 4

I am encountering an issue with button text alignment. After customizing the width and height of a button, I noticed that its text does not remain centered on certain screen sizes while in debugging mode. Html <!doctype html> <html lang="en> ...

Adjusting (css styles like top, left, and width) for an external occurrence within fullcalendar

$scope.ctrlstartDragging = function(id) { var book = document.getElementById(id); var domRect = book.getBoundingClientRect(); book.style.position = 'fixed'; book.style.top = domRect.top + & ...

Delete element by class in jQuery

Hey there! Would you happen to know if there's a wildcard in jQuery that could help me remove a class from an element? I've been trying to update the classes on my info message box. When a user clicks it once, then clicks it again, it adds a ne ...

An issue occurred with the DOMException while trying to execute the 'setAttribute' function on the 'Element': '{{' is an invalid attribute identifier

Currently, the code is under development and some methods are still empty while the *ngIf directives may not be correct in terms of logic. However, even with these issues, I encountered the same error without bothering to remove them at this stage. While ...

The issue with the `.load` function in jQuery not functioning properly

I'm currently tackling an issue with a project where I am encountering difficulties with the .load function not working in Google Chrome. Below is the JavaScript code: function link1() { $('#loadarea').html('loading.....' ...

adjusting the color of ion-button when hovering over the cancel button

I'm working on a button bar for my app and I want the color of the button to change based on its state (false, true). Currently, the button starts out green, turns light green when hovered over, and becomes white when clicked. Once I click it, the bu ...

Angular 8 is facing an issue where classes defined dynamically in the 'host' property of a directive are not being properly applied to the parent template

In my Angular 8 application, I am working on implementing sorting using the ng-bootstrap table. I referred to the example available at . In the sample, when I hover over the table header, it changes to a hand pointer with a highlighted class applied as sho ...

Encountering an issue with updating the image upon hovering over items within a list using Jquery

Whenever I attempt to choose a different item from the list, the image does not update. Upon inspecting with console.log, it appears that the selector remains static even when hovering over other items on the list, resulting in Image A always being display ...

Personalized jQuery mask customization

After experimenting with a masking function that conceals numbers based on a specific pattern, I am now looking to make it more flexible for users. For instance, if a user types 123456789, the field will display as XXX-XX-6789. Currently, the pattern is ...

Discover the child of the delegated event div using jQuery

Can you assist me in resolving this issue? My HTML structure appears as follows: <div id="main-randompart"> <!--Inserted into the DOM during runtime--> <div class="close"> X </div> <img src="somesrc..."> ...

Adapting CSS grid columns based on device screen size

I am currently experimenting with CSS grid to create a layout that changes based on different screen sizes. Here is what I want to achieve: On a mobile screen, there should be one column that takes up the entire width. This column consists of two sections ...

Angular: The most efficient method for creating a customized HTML page with unique styles specifically for PDF generation

Struggling with PDF generation and the challenge of preparing hidden HTML is my current hurdle. The backend team has built a PDF generation service that requires passing an HTML string as a parameter. My task is to hide all HTML elements upon clicking the ...

What is the best way to eliminate #name from a URL?

On my website, there is an internal link that currently reads as http://www.example.com/#name. I am looking to modify this link to simply be http://www.example.com. ...

Can anyone recommend a super sleek drop-down navigation menu that includes both images and text descriptions?

My interest has been piqued on how to create a menu similar to the one on with all the images and text details. Does anyone have any insights on the technologies utilized for this? Are there any commercial options available that offer a similar functiona ...

What is the functionality behind this unique SCSS mixin that combines flexbox and grid layouts?

Discover a SCSS mixin for creating flexbox/grid layouts HERE. Take a look at the complete mixin code below: @mixin grid-col( $col: null, $grid-columns: 12, $col-offset: null, $gutter: null, $condensed: false, ...

Tips for adding additional rows or cells to a table with jQuery

Similar Questions: How to Add Table Rows with jQuery Adding Rows Dynamically using jQuery. I am currently working with a table that contains one row and five editable cells for user input. My goal is to implement an "Add Row" feature using jQuery ...